@hiennc24/constant 1.5.16 → 1.5.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,18 @@
1
1
  {
2
+ "EVENT_NAMES": {
3
+ "PURCHASE_ORDER": {
4
+ "CREATED": "purchase-order.created",
5
+ "UPDATED": "purchase-order.updated",
6
+ "APPROVED": "purchase-order.approved",
7
+ "REJECTED": "purchase-order.rejected"
8
+ },
9
+ "SALE_ORDER": {
10
+ "CREATED": "sale-order.created",
11
+ "UPDATED": "sale-order.updated",
12
+ "APPROVED": "sale-order.approved",
13
+ "REJECTED": "sale-order.rejected"
14
+ }
15
+ },
2
16
  "SVC_SHARED_SETTING_INVOICE": {
3
17
  "NAME": "svc-shared.settingInvoice",
4
18
  "ACTION_CREATE": "create",
@@ -133,6 +147,61 @@
133
147
  "SVC_BUSINESS_PARTNER_DETAIL": {
134
148
  "NAME": "svc-business-partner.partner-details"
135
149
  },
150
+ "SVC_DEBTS": {
151
+ "NAME": "svc-business-partner.debts",
152
+ "ACTION_GET_LIST": "lists",
153
+ "ACTION_GET_DETAIL": "detail",
154
+ "ACTION_CREATE": "create",
155
+ "ACTION_UPDATE": "update",
156
+ "ACTION_DELETE": "delete",
157
+ "ACTION_GET_FORECAST": "getForecast",
158
+ "ACTION_GET_DASHBOARD": "getDashboard",
159
+ "ACTION_GET_FX_RATES": "getFXRates",
160
+ "ACTION_FETCH_FX_RATES": "fetchFXRates",
161
+ "ACTION_CONVERT_CURRENCY": "convertCurrency",
162
+ "ACTION_OVERRIDE_FX_RATE": "overrideFXRate",
163
+ "ACTION_GET_FX_RATE_HISTORY": "getFXRateHistories",
164
+ "ACTION_GL_JOURNAL_NETTING": "getGLJournalNetting",
165
+ "ACTION_GL_JOURNAL_PAYMENT": "getGLJournalPayment",
166
+ "ACTION_GL_BATCH_POST": "glBatchPost",
167
+ "ACTION_GL_RECONCILE": "glReconcile",
168
+ "ACTION_GL_ACCOUNTS": "getGLAccounts",
169
+ "ACTION_GL_JOURNAL_GET": "getGLJournalDetail",
170
+ "ACTION_EXECUTE_NETTING": "executeNetting",
171
+ "ACTION_GET_NETTING_OPPORTUNITIES": "getNettingOpportunities",
172
+ "ACTION_GET_NETTING_HISTORY": "getNettingHistories",
173
+ "ACTION_CHECK_NETTING_ELIGIBILITY": "checkNettingEligibility",
174
+ "ACTION_GET_PARTNER_DEBT_SUMMARY": "getPartnerSummaries",
175
+ "ACTION_GET_AGING_REPORT": "getAgingReports",
176
+ "ACTION_GET_LEDGERS_BY_PARTNER": "getLedgerByPartner",
177
+ "ACTION_CREATE_DEBT_FROM_ORDER": "createDebtFromOrder",
178
+ "ACTION_RECORD_PAYMENT": "recordPayment",
179
+ "ACTION_PREVIEW_ALLOCATION": "previewAllocation",
180
+ "ACTION_GET_PAYMENT_DETAIL": "getPaymentDetail"
181
+ },
182
+ "SVC_DEBT_TRANSACTIONS": {
183
+ "NAME": "svc-business-partner.debt-transactions",
184
+ "ACTION_GET_LIST": "lists",
185
+ "ACTION_GET_DETAIL": "detail",
186
+ "ACTION_CREATE": "create",
187
+ "ACTION_CREATE_MANY": "create-many",
188
+ "ACTION_UPDATE": "update",
189
+ "ACTION_DELETE": "delete",
190
+ "ACTION_UPDATE_STATUS": "updateStatus",
191
+ "ACTION_GENERATE_CODE": "generate-code"
192
+ },
193
+ "SVC_DEBT_PERIODS": {
194
+ "NAME": "svc-business-partner.debt-periods",
195
+ "ACTION_GET_LIST": "getList",
196
+ "ACTION_GET_DETAIL": "getDetail",
197
+ "ACTION_CREATE": "create",
198
+ "ACTION_UPDATE": "update",
199
+ "ACTION_DELETE": "delete"
200
+ },
201
+ "SVC_DEBT_HISTORIES": {
202
+ "NAME": "svc-business-partner.debt-histories",
203
+ "ACTION_CREATE_HISTORY": "createHistory"
204
+ },
136
205
  "SVC_VOUCHER_TYPES": {
137
206
  "NAME": "svc-administration-list.voucher-types",
138
207
  "ACTION_GET_DETAIL": "getDetail",
@@ -277,39 +346,6 @@
277
346
  "ACTION_UPDATE": "update",
278
347
  "ACTION_DELETE": "delete"
279
348
  },
280
- "SVC_DEBT_TRANSACTIONS": {
281
- "NAME": "svc-order.debt-transactions",
282
- "ACTION_GET_LIST": "lists",
283
- "ACTION_GET_DETAIL": "detail",
284
- "ACTION_CREATE": "create",
285
- "ACTION_CREATE_MANY": "create-many",
286
- "ACTION_UPDATE": "update",
287
- "ACTION_DELETE": "delete",
288
- "ACTION_UPDATE_STATUS": "updateStatus",
289
- "ACTION_GENERATE_CODE": "generate-code"
290
- },
291
- "SVC_DEBT_PERIODS": {
292
- "NAME": "svc-order.debt-periods",
293
- "ACTION_GET_LIST": "getList",
294
- "ACTION_GET_DETAIL": "getDetail",
295
- "ACTION_CREATE": "create",
296
- "ACTION_UPDATE": "update",
297
- "ACTION_DELETE": "delete"
298
- },
299
- "SVC_DEBTS": {
300
- "NAME": "svc-order.debts",
301
- "ACTION_GET_LIST": "lists",
302
- "ACTION_GET_DETAIL": "detail",
303
- "ACTION_CREATE": "create",
304
- "ACTION_UPDATE": "update",
305
- "ACTION_DELETE": "delete",
306
- "ACTION_GET_LIST_BY_CUSTOMER": "get-list-by-customer",
307
- "ACTION_GENERATE_CODE": "generate-code"
308
- },
309
- "SVC_DEBT_HISTORIES": {
310
- "NAME": "svc-order.debt-histories",
311
- "ACTION_CREATE_HISTORY": "createHistory"
312
- },
313
349
  "API_SALES_DELIVERY_HISTORY": {
314
350
  "NAME": "api-sales.delivery-history",
315
351
  "ACTION_CREATE_HISTORY": "createHistory"
@@ -2808,7 +2844,10 @@
2808
2844
  "ACTION_VERIFY_CODE": "verifyCode",
2809
2845
  "ACTION_REQUEST_CODE": "requestCode",
2810
2846
  "ACTION_VALIDATE_TOKEN": "validateToken",
2811
- "ACTION_GET_PO_DETAIL_BY_TOKEN": "getPODetailByToken"
2847
+ "ACTION_GET_PO_DETAIL_BY_TOKEN": "getPODetailByToken",
2848
+ "ACTION_ACCEPT": "accept",
2849
+ "ACTION_REJECT": "reject",
2850
+ "ACTION_NEED_UPDATE": "needUpdate"
2812
2851
  },
2813
2852
  "SVC_PURCHASE_ORDER_HISTORIES": {
2814
2853
  "NAME": "svc-orders.purchase-order-histories",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiennc24/constant",
3
- "version": "1.5.16",
3
+ "version": "1.5.17",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {