@@ -104,39 +104,103 @@ abstract class WebhookEntity extends Object
104
104
static const EVENT_DELETE_CREDIT = '29' ;
105
105
static const EVENT_DELETE_PROJECT = '30' ;
106
106
static const EVENT_UPDATE_PAYMENT = '31' ;
107
+ static const EVENT_ARCHIVE_PAYMENT = '32' ;
108
+ static const EVENT_ARCHIVE_INVOICE = '33' ;
109
+ static const EVENT_ARCHIVE_QUOTE = '34' ;
110
+ static const EVENT_ARCHIVE_CREDIT = '35' ;
111
+ static const EVENT_ARCHIVE_TASK = '36' ;
112
+ static const EVENT_ARCHIVE_CLIENT = '37' ;
113
+ static const EVENT_ARCHIVE_PROJECT = '38' ;
114
+ static const EVENT_ARCHIVE_EXPENSE = '39' ;
115
+ static const EVENT_RESTORE_PAYMENT = '40' ;
116
+ static const EVENT_RESTORE_INVOICE = '41' ;
117
+ static const EVENT_RESTORE_QUOTE = '42' ;
118
+ static const EVENT_RESTORE_CREDIT = '43' ;
119
+ static const EVENT_RESTORE_TASK = '44' ;
120
+ static const EVENT_RESTORE_CLIENT = '45' ;
121
+ static const EVENT_RESTORE_PROJECT = '46' ;
122
+ static const EVENT_RESTORE_EXPENSE = '47' ;
123
+ static const EVENT_ARCHIVE_VENDOR = '48' ;
124
+ static const EVENT_RESTORE_VENDOR = '49' ;
125
+ static const EVENT_CREATE_PRODUCT = '50' ;
126
+ static const EVENT_UPDATE_PRODUCT = '51' ;
127
+ static const EVENT_DELETE_PRODUCT = '52' ;
128
+ static const EVENT_RESTORE_PRODUCT = '53' ;
129
+ static const EVENT_ARCHIVE_PRODUCT = '54' ;
130
+ static const EVENT_CREATE_PURCHASE_ORDER = '55' ;
131
+ static const EVENT_UPDATE_PURCHASE_ORDER = '56' ;
132
+ static const EVENT_DELETE_PURCHASE_ORDER = '57' ;
133
+ static const EVENT_RESTORE_PURCHASE_ORDER = '58' ;
134
+ static const EVENT_ARCHIVE_PURCHASE_ORDER = '59' ;
135
+ static const EVENT_SENT_INVOICE = '60' ;
136
+ static const EVENT_SENT_QUOTE = '61' ;
137
+ static const EVENT_SENT_CREDIT = '62' ;
138
+ static const EVENT_SENT_PURCHASE_ORDER = '63' ;
107
139
108
140
static const EVENT_MAP = {
109
141
EVENT_CREATE_CLIENT : 'create_client' ,
110
142
EVENT_UPDATE_CLIENT : 'update_client' ,
143
+ EVENT_ARCHIVE_CLIENT : 'archive_client' ,
144
+ EVENT_RESTORE_CLIENT : 'restore_client' ,
111
145
EVENT_DELETE_CLIENT : 'delete_client' ,
112
146
EVENT_CREATE_INVOICE : 'create_invoice' ,
147
+ EVENT_SENT_INVOICE : 'sent_invoice' ,
113
148
EVENT_UPDATE_INVOICE : 'update_invoice' ,
114
149
EVENT_LATE_INVOICE : 'late_invoice' ,
115
150
EVENT_REMIND_INVOICE : 'remind_invoice' ,
151
+ EVENT_ARCHIVE_INVOICE : 'archive_invoice' ,
152
+ EVENT_RESTORE_INVOICE : 'restore_invoice' ,
116
153
EVENT_DELETE_INVOICE : 'delete_invoice' ,
117
154
EVENT_CREATE_QUOTE : 'create_quote' ,
155
+ EVENT_SENT_QUOTE : 'sent_quote' ,
118
156
EVENT_UPDATE_QUOTE : 'update_quote' ,
119
157
EVENT_APPROVE_QUOTE : 'approve_quote' ,
120
158
EVENT_EXPIRED_QUOTE : 'expired_quote' ,
159
+ EVENT_ARCHIVE_QUOTE : 'archive_quote' ,
160
+ EVENT_RESTORE_QUOTE : 'restore_quote' ,
121
161
EVENT_DELETE_QUOTE : 'delete_quote' ,
122
162
EVENT_CREATE_CREDIT : 'create_credit' ,
163
+ EVENT_SENT_CREDIT : 'sent_credit' ,
123
164
EVENT_UPDATE_CREDIT : 'update_credit' ,
165
+ EVENT_ARCHIVE_CREDIT : 'archive_credit' ,
166
+ EVENT_RESTORE_CREDIT : 'restore_credit' ,
124
167
EVENT_DELETE_CREDIT : 'delete_credit' ,
125
168
EVENT_CREATE_PAYMENT : 'create_payment' ,
126
169
EVENT_UPDATE_PAYMENT : 'update_payment' ,
170
+ EVENT_ARCHIVE_PAYMENT : 'archive_payment' ,
171
+ EVENT_RESTORE_PAYMENT : 'restore_payment' ,
127
172
EVENT_DELETE_PAYMENT : 'delete_payment' ,
128
173
EVENT_CREATE_VENDOR : 'create_vendor' ,
129
174
EVENT_UPDATE_VENDOR : 'update_vendor' ,
175
+ EVENT_ARCHIVE_VENDOR : 'archive_vendor' ,
176
+ EVENT_RESTORE_VENDOR : 'restore_vendor' ,
130
177
EVENT_DELETE_VENDOR : 'delete_vendor' ,
131
178
EVENT_CREATE_EXPENSE : 'create_expense' ,
132
179
EVENT_UPDATE_EXPENSE : 'update_expense' ,
180
+ EVENT_ARCHIVE_EXPENSE : 'archive_expense' ,
181
+ EVENT_RESTORE_EXPENSE : 'restore_expense' ,
133
182
EVENT_DELETE_EXPENSE : 'delete_expense' ,
134
183
EVENT_CREATE_TASK : 'create_task' ,
135
184
EVENT_UPDATE_TASK : 'update_task' ,
185
+ EVENT_ARCHIVE_TASK : 'archive_task' ,
186
+ EVENT_RESTORE_TASK : 'restore_task' ,
136
187
EVENT_DELETE_TASK : 'delete_task' ,
137
188
EVENT_CREATE_PROJECT : 'create_project' ,
138
189
EVENT_UPDATE_PROJECT : 'update_project' ,
190
+ EVENT_ARCHIVE_PROJECT : 'archive_project' ,
191
+ EVENT_RESTORE_PROJECT : 'restore_project' ,
139
192
EVENT_DELETE_PROJECT : 'delete_project' ,
193
+ EVENT_CREATE_PRODUCT : 'create_product' ,
194
+ EVENT_UPDATE_PRODUCT : 'update_product' ,
195
+ EVENT_DELETE_PRODUCT : 'delete_product' ,
196
+ EVENT_RESTORE_PRODUCT : 'restore_product' ,
197
+ EVENT_ARCHIVE_PRODUCT : 'archive_product' ,
198
+ EVENT_CREATE_PURCHASE_ORDER : 'create_purchase_order' ,
199
+ EVENT_SENT_PURCHASE_ORDER : 'sent_purchase_order' ,
200
+ EVENT_UPDATE_PURCHASE_ORDER : 'update_purchase_order' ,
201
+ EVENT_DELETE_PURCHASE_ORDER : 'delete_purchase_order' ,
202
+ EVENT_RESTORE_PURCHASE_ORDER : 'restore_purchase_order' ,
203
+ EVENT_ARCHIVE_PURCHASE_ORDER : 'archive_purchase_order' ,
140
204
};
141
205
142
206
@override
0 commit comments