@revenexx/sdk 0.0.4 → 0.0.5
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/dist/cjs/sdk.js +7445 -1584
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +7422 -1585
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +7445 -1584
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/enums/address-type.ts +4 -0
- package/src/enums/cart-export-format.ts +4 -0
- package/src/enums/cart-io-apply-mode.ts +5 -0
- package/src/enums/cart-io-direction.ts +4 -0
- package/src/enums/cart-io-entity.ts +4 -0
- package/src/enums/cart-io-format.ts +4 -0
- package/src/enums/cart-item-type.ts +5 -0
- package/src/enums/channel-status.ts +4 -0
- package/src/enums/channel-type.ts +7 -0
- package/src/enums/contact-role.ts +6 -0
- package/src/enums/contact-status.ts +5 -0
- package/src/enums/location-type.ts +6 -0
- package/src/enums/market-status.ts +4 -0
- package/src/enums/order-comment-visibility.ts +4 -0
- package/src/enums/order-item-type.ts +5 -0
- package/src/enums/order-payment-status.ts +9 -0
- package/src/enums/organization-status.ts +4 -0
- package/src/enums/page-status.ts +5 -0
- package/src/enums/payment-fee-type.ts +5 -0
- package/src/enums/payment-method-kind.ts +4 -0
- package/src/enums/price-entry-type.ts +4 -0
- package/src/enums/price-list-status.ts +4 -0
- package/src/enums/shipping-method-matrix-basis.ts +6 -0
- package/src/enums/shipping-method-pricing-type.ts +5 -0
- package/src/index.ts +24 -0
- package/src/models.ts +4303 -941
- package/src/services/apps.ts +154 -154
- package/src/services/avatars.ts +57 -57
- package/src/services/carts.ts +739 -104
- package/src/services/channels.ts +147 -19
- package/src/services/customers.ts +801 -69
- package/src/services/greetings.ts +18 -18
- package/src/services/inventories.ts +620 -65
- package/src/services/locale.ts +16 -16
- package/src/services/markets.ts +373 -75
- package/src/services/messaging.ts +273 -273
- package/src/services/orders.ts +692 -137
- package/src/services/pages.ts +377 -157
- package/src/services/payments.ts +591 -64
- package/src/services/prices.ts +524 -59
- package/src/services/products.ts +1836 -272
- package/src/services/search.ts +24 -24
- package/src/services/shipping.ts +444 -59
- package/src/services/sites.ts +116 -116
- package/src/services/storage.ts +72 -72
- package/src/services/tokens.ts +14 -14
- package/types/enums/address-type.d.ts +4 -0
- package/types/enums/cart-export-format.d.ts +4 -0
- package/types/enums/cart-io-apply-mode.d.ts +5 -0
- package/types/enums/cart-io-direction.d.ts +4 -0
- package/types/enums/cart-io-entity.d.ts +4 -0
- package/types/enums/cart-io-format.d.ts +4 -0
- package/types/enums/cart-item-type.d.ts +5 -0
- package/types/enums/channel-status.d.ts +4 -0
- package/types/enums/channel-type.d.ts +7 -0
- package/types/enums/contact-role.d.ts +6 -0
- package/types/enums/contact-status.d.ts +5 -0
- package/types/enums/location-type.d.ts +6 -0
- package/types/enums/market-status.d.ts +4 -0
- package/types/enums/order-comment-visibility.d.ts +4 -0
- package/types/enums/order-item-type.d.ts +5 -0
- package/types/enums/order-payment-status.d.ts +9 -0
- package/types/enums/organization-status.d.ts +4 -0
- package/types/enums/page-status.d.ts +5 -0
- package/types/enums/payment-fee-type.d.ts +5 -0
- package/types/enums/payment-method-kind.d.ts +4 -0
- package/types/enums/price-entry-type.d.ts +4 -0
- package/types/enums/price-list-status.d.ts +4 -0
- package/types/enums/shipping-method-matrix-basis.d.ts +6 -0
- package/types/enums/shipping-method-pricing-type.d.ts +5 -0
- package/types/index.d.ts +24 -0
- package/types/models.d.ts +4214 -970
- package/types/services/carts.d.ts +271 -12
- package/types/services/channels.d.ts +54 -2
- package/types/services/customers.d.ts +295 -12
- package/types/services/inventories.d.ts +225 -11
- package/types/services/markets.d.ts +123 -6
- package/types/services/orders.d.ts +238 -16
- package/types/services/pages.d.ts +95 -6
- package/types/services/payments.d.ts +221 -7
- package/types/services/prices.d.ts +198 -6
- package/types/services/products.d.ts +646 -32
- package/types/services/shipping.d.ts +165 -6
|
@@ -18,7 +18,7 @@ export class Greetings {
|
|
|
18
18
|
greetingsDigest(): Promise<{}> {
|
|
19
19
|
|
|
20
20
|
const apiPath = '/v1/digest';
|
|
21
|
-
const
|
|
21
|
+
const apiPayload: Payload = {};
|
|
22
22
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23
23
|
|
|
24
24
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -28,7 +28,7 @@ export class Greetings {
|
|
|
28
28
|
'get',
|
|
29
29
|
uri,
|
|
30
30
|
apiHeaders,
|
|
31
|
-
|
|
31
|
+
apiPayload
|
|
32
32
|
);
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -40,7 +40,7 @@ export class Greetings {
|
|
|
40
40
|
greetingsList(): Promise<{}> {
|
|
41
41
|
|
|
42
42
|
const apiPath = '/v1/greetings';
|
|
43
|
-
const
|
|
43
|
+
const apiPayload: Payload = {};
|
|
44
44
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
45
45
|
|
|
46
46
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -50,7 +50,7 @@ export class Greetings {
|
|
|
50
50
|
'get',
|
|
51
51
|
uri,
|
|
52
52
|
apiHeaders,
|
|
53
|
-
|
|
53
|
+
apiPayload
|
|
54
54
|
);
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -94,12 +94,12 @@ export class Greetings {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
const apiPath = '/v1/greetings';
|
|
97
|
-
const
|
|
97
|
+
const apiPayload: Payload = {};
|
|
98
98
|
if (typeof locale !== 'undefined') {
|
|
99
|
-
|
|
99
|
+
apiPayload['locale'] = locale;
|
|
100
100
|
}
|
|
101
101
|
if (typeof name !== 'undefined') {
|
|
102
|
-
|
|
102
|
+
apiPayload['name'] = name;
|
|
103
103
|
}
|
|
104
104
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
105
105
|
|
|
@@ -111,7 +111,7 @@ export class Greetings {
|
|
|
111
111
|
'post',
|
|
112
112
|
uri,
|
|
113
113
|
apiHeaders,
|
|
114
|
-
|
|
114
|
+
apiPayload
|
|
115
115
|
);
|
|
116
116
|
}
|
|
117
117
|
|
|
@@ -150,7 +150,7 @@ export class Greetings {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
const apiPath = '/v1/greetings/{id}'.replace('{id}', id);
|
|
153
|
-
const
|
|
153
|
+
const apiPayload: Payload = {};
|
|
154
154
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
155
155
|
|
|
156
156
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -160,7 +160,7 @@ export class Greetings {
|
|
|
160
160
|
'delete',
|
|
161
161
|
uri,
|
|
162
162
|
apiHeaders,
|
|
163
|
-
|
|
163
|
+
apiPayload
|
|
164
164
|
);
|
|
165
165
|
}
|
|
166
166
|
|
|
@@ -199,7 +199,7 @@ export class Greetings {
|
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
const apiPath = '/v1/greetings/{id}'.replace('{id}', id);
|
|
202
|
-
const
|
|
202
|
+
const apiPayload: Payload = {};
|
|
203
203
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
204
204
|
|
|
205
205
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -209,7 +209,7 @@ export class Greetings {
|
|
|
209
209
|
'get',
|
|
210
210
|
uri,
|
|
211
211
|
apiHeaders,
|
|
212
|
-
|
|
212
|
+
apiPayload
|
|
213
213
|
);
|
|
214
214
|
}
|
|
215
215
|
|
|
@@ -265,18 +265,18 @@ export class Greetings {
|
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
const apiPath = '/v1/greetings/{id}'.replace('{id}', id);
|
|
268
|
-
const
|
|
268
|
+
const apiPayload: Payload = {};
|
|
269
269
|
if (typeof locale !== 'undefined') {
|
|
270
|
-
|
|
270
|
+
apiPayload['locale'] = locale;
|
|
271
271
|
}
|
|
272
272
|
if (typeof message !== 'undefined') {
|
|
273
|
-
|
|
273
|
+
apiPayload['message'] = message;
|
|
274
274
|
}
|
|
275
275
|
if (typeof metadata !== 'undefined') {
|
|
276
|
-
|
|
276
|
+
apiPayload['metadata'] = metadata;
|
|
277
277
|
}
|
|
278
278
|
if (typeof name !== 'undefined') {
|
|
279
|
-
|
|
279
|
+
apiPayload['name'] = name;
|
|
280
280
|
}
|
|
281
281
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
282
282
|
|
|
@@ -288,7 +288,7 @@ export class Greetings {
|
|
|
288
288
|
'put',
|
|
289
289
|
uri,
|
|
290
290
|
apiHeaders,
|
|
291
|
-
|
|
291
|
+
apiPayload
|
|
292
292
|
);
|
|
293
293
|
}
|
|
294
294
|
}
|