repzo-sap-absjo 1.0.19 → 1.0.20
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.
- package/lib/actions/create_invoice.d.ts +13 -19
- package/lib/actions/create_invoice.js +207 -377
- package/lib/actions/create_payment.d.ts +1 -4
- package/lib/actions/create_payment.js +107 -195
- package/lib/actions/create_proforma.d.ts +1 -4
- package/lib/actions/create_proforma.js +146 -285
- package/lib/actions/create_return_invoice.d.ts +1 -4
- package/lib/actions/create_return_invoice.js +158 -312
- package/lib/actions/create_transfer.d.ts +1 -4
- package/lib/actions/create_transfer.js +126 -223
- package/lib/actions/index.js +15 -23
- package/lib/commands/adjust_inventory.d.ts +2 -4
- package/lib/commands/adjust_inventory.js +160 -290
- package/lib/commands/bank.d.ts +2 -4
- package/lib/commands/bank.js +157 -279
- package/lib/commands/basic.js +48 -67
- package/lib/commands/brand.d.ts +1 -3
- package/lib/commands/brand.js +100 -174
- package/lib/commands/category.d.ts +1 -3
- package/lib/commands/category.js +104 -178
- package/lib/commands/channel.d.ts +1 -3
- package/lib/commands/channel.js +117 -198
- package/lib/commands/client.d.ts +32 -34
- package/lib/commands/client.js +244 -404
- package/lib/commands/client_disabled.d.ts +1 -3
- package/lib/commands/client_disabled.js +94 -163
- package/lib/commands/index.d.ts +11 -15
- package/lib/commands/index.js +62 -62
- package/lib/commands/join.js +66 -192
- package/lib/commands/measureunit.d.ts +14 -19
- package/lib/commands/measureunit.js +191 -289
- package/lib/commands/measureunit_family.d.ts +8 -10
- package/lib/commands/measureunit_family.js +138 -250
- package/lib/commands/payment_term.d.ts +1 -3
- package/lib/commands/payment_term.js +123 -202
- package/lib/commands/price_list.d.ts +15 -15
- package/lib/commands/price_list.js +326 -612
- package/lib/commands/product.d.ts +30 -32
- package/lib/commands/product.js +263 -485
- package/lib/commands/product_disabled.d.ts +1 -3
- package/lib/commands/product_disabled.js +94 -160
- package/lib/commands/rep.js +141 -221
- package/lib/commands/tag.js +109 -174
- package/lib/commands/tax.js +112 -177
- package/lib/commands/warehouse.d.ts +1 -3
- package/lib/commands/warehouse.js +119 -207
- package/lib/index.d.ts +12 -21
- package/lib/test/actions/create_invoice.js +188 -193
- package/lib/test/actions/create_payment.js +107 -112
- package/lib/test/actions/create_proforma.js +216 -220
- package/lib/test/actions/create_return_invoice.js +200 -205
- package/lib/test/actions/create_transfer.js +115 -120
- package/lib/test/commands/adjust_inventory.js +90 -90
- package/lib/test/commands/bank.js +90 -90
- package/lib/test/commands/basic.js +327 -328
- package/lib/test/commands/brand.js +90 -90
- package/lib/test/commands/category.js +90 -90
- package/lib/test/commands/channel.js +90 -90
- package/lib/test/commands/client.js +353 -355
- package/lib/test/commands/client_disabled.js +90 -90
- package/lib/test/commands/join.js +327 -328
- package/lib/test/commands/measureunit.js +90 -90
- package/lib/test/commands/measureunit_family.js +90 -90
- package/lib/test/commands/payment_term.js +90 -90
- package/lib/test/commands/price_list.js +334 -337
- package/lib/test/commands/product.js +90 -90
- package/lib/test/commands/product_disabled.js +90 -90
- package/lib/test/commands/rep.js +344 -346
- package/lib/test/commands/tag.js +90 -90
- package/lib/test/commands/tax.js +90 -90
- package/lib/test/commands/warehouse.js +90 -90
- package/lib/types.d.ts +53 -77
- package/lib/util.d.ts +19 -70
- package/lib/util.js +144 -170
- package/package.json +1 -1
- package/src/actions/create_invoice.ts +5 -25
|
@@ -1,97 +1,97 @@
|
|
|
1
1
|
import { Commands } from "../../index.js";
|
|
2
2
|
let commandEvent = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
3
|
+
app: {
|
|
4
|
+
_id: "6391a53edb71ef6435719794",
|
|
5
|
+
name: "SAP",
|
|
6
|
+
disabled: false,
|
|
7
|
+
available_app: {
|
|
8
|
+
_id: "6391a268db71ef64357195da",
|
|
9
|
+
name: "repzo-sap-absjo",
|
|
10
|
+
title: "SAP ABS JO",
|
|
11
|
+
logo: "https://www.e2abs.com/wp-content/uploads/2021/03/Website-Main-Logo-1.svg",
|
|
12
|
+
description: "",
|
|
13
|
+
disabled: false,
|
|
14
|
+
JSONSchema: {
|
|
15
|
+
title: "SAP Integration Settings",
|
|
16
|
+
type: "object",
|
|
17
|
+
required: ["repzoApiKey", "sapHostUrl"],
|
|
18
|
+
properties: {
|
|
19
|
+
repzoApiKey: {
|
|
20
|
+
type: "string",
|
|
21
|
+
title: "Repzo API KEY",
|
|
22
|
+
},
|
|
23
|
+
sapHostUrl: {
|
|
24
|
+
type: "string",
|
|
25
|
+
title: "SAP Host Url",
|
|
26
|
+
},
|
|
27
|
+
errorEmail: {
|
|
28
|
+
type: "string",
|
|
29
|
+
format: "email",
|
|
30
|
+
title: "Email in case of error",
|
|
31
|
+
},
|
|
32
|
+
warehouseDefaultUpdateDate: {
|
|
33
|
+
type: "string",
|
|
34
|
+
format: "date",
|
|
35
|
+
title: "Warehouse: Default Update Date",
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
options_JSONSchema: {
|
|
40
|
+
title: "SAP Integration Optional Settings",
|
|
41
|
+
type: "object",
|
|
42
|
+
required: [],
|
|
43
|
+
properties: {
|
|
44
|
+
bench_time_warehouse: {
|
|
45
|
+
title: "Bench Time: Warehouse",
|
|
46
|
+
type: "string",
|
|
47
|
+
format: "date",
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
app_settings: {
|
|
52
|
+
repo: "",
|
|
53
|
+
serviceEndPoint: "",
|
|
54
|
+
_id: "6391a268db71ef64357195db",
|
|
55
|
+
},
|
|
56
|
+
app_category: "6249fa8466312f76e595634a",
|
|
57
|
+
commands: [
|
|
58
|
+
{
|
|
59
|
+
command: "basic",
|
|
60
|
+
name: "Full Sync",
|
|
61
|
+
description: "",
|
|
62
|
+
_id: "6391a268db71ef64357195dc",
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
command: "join",
|
|
66
|
+
name: "Join",
|
|
67
|
+
description: "",
|
|
68
|
+
_id: "6391a268db71ef64357195dd",
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
actions: [],
|
|
72
|
+
createdAt: "2022-12-08T08:38:00.915Z",
|
|
73
|
+
updatedAt: "2022-12-08T09:42:49.236Z",
|
|
74
|
+
__v: 0,
|
|
37
75
|
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
title: "Bench Time: Warehouse",
|
|
46
|
-
type: "string",
|
|
47
|
-
format: "date",
|
|
48
|
-
},
|
|
76
|
+
company_namespace: ["unisap"],
|
|
77
|
+
formData: {
|
|
78
|
+
repzoApiKey: "L98_Pc8qZG2R5hZIIMjxLQNUgUzT3_0aX2BuLvkyh74",
|
|
79
|
+
sapHostUrl: "http://unipal.b1pro.com:8083/api",
|
|
80
|
+
errorEmail: "maram.alshen@repzoapp.com",
|
|
81
|
+
serviceApiKey: "awdas",
|
|
82
|
+
warehouseDefaultUpdateDate: "2015-01-01",
|
|
49
83
|
},
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
_id: "6391a268db71ef64357195db",
|
|
55
|
-
},
|
|
56
|
-
app_category: "6249fa8466312f76e595634a",
|
|
57
|
-
commands: [
|
|
58
|
-
{
|
|
59
|
-
command: "basic",
|
|
60
|
-
name: "Full Sync",
|
|
61
|
-
description: "",
|
|
62
|
-
_id: "6391a268db71ef64357195dc",
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
command: "join",
|
|
66
|
-
name: "Join",
|
|
67
|
-
description: "",
|
|
68
|
-
_id: "6391a268db71ef64357195dd",
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
-
actions: [],
|
|
72
|
-
createdAt: "2022-12-08T08:38:00.915Z",
|
|
73
|
-
updatedAt: "2022-12-08T09:42:49.236Z",
|
|
74
|
-
__v: 0,
|
|
75
|
-
},
|
|
76
|
-
company_namespace: ["unisap"],
|
|
77
|
-
formData: {
|
|
78
|
-
repzoApiKey: "L98_Pc8qZG2R5hZIIMjxLQNUgUzT3_0aX2BuLvkyh74",
|
|
79
|
-
sapHostUrl: "http://unipal.b1pro.com:8083/api",
|
|
80
|
-
errorEmail: "maram.alshen@repzoapp.com",
|
|
81
|
-
serviceApiKey: "awdas",
|
|
82
|
-
warehouseDefaultUpdateDate: "2015-01-01",
|
|
84
|
+
options_formData: {},
|
|
85
|
+
createdAt: "2022-12-08T08:50:06.903Z",
|
|
86
|
+
updatedAt: "2022-12-08T09:43:21.620Z",
|
|
87
|
+
__v: 0,
|
|
83
88
|
},
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
timezone: "Asia/Amman",
|
|
92
|
-
meta: "",
|
|
93
|
-
env: "staging",
|
|
94
|
-
sync_id: "47c9c804-e136-4d54-928a-000015",
|
|
95
|
-
command: "disabled_client",
|
|
89
|
+
end_of_day: "04:00",
|
|
90
|
+
nameSpace: ["unisap"],
|
|
91
|
+
timezone: "Asia/Amman",
|
|
92
|
+
meta: "",
|
|
93
|
+
env: "staging",
|
|
94
|
+
sync_id: "47c9c804-e136-4d54-928a-000015",
|
|
95
|
+
command: "disabled_client",
|
|
96
96
|
};
|
|
97
97
|
Commands(commandEvent);
|