btrz-api-client 5.183.0 → 5.185.0
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/client-standalone-min.js +1 -5
- package/lib/endpoints/accounts/users.js +52 -24
- package/lib/endpoints/sales/cart.js +21 -7
- package/package.json +1 -1
- package/src/endpoints/accounts/users.js +17 -1
- package/src/endpoints/sales/cart.js +9 -1
- package/test/endpoints/accounts/users.js +26 -0
- package/test/endpoints/sales/cart.test.js +6 -0
- package/types/client.d.ts +22 -12
- package/types/endpoints/accounts/dynamic-forms.d.ts +1 -6
- package/types/endpoints/accounts/users.d.ts +12 -4
- package/types/endpoints/sales/cart.d.ts +7 -0
- package/types/initializedClient.d.ts +21 -11
|
@@ -34,7 +34,7 @@ function usersFactory(_ref) {
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
function
|
|
37
|
+
function login(_ref4) {
|
|
38
38
|
var token = _ref4.token,
|
|
39
39
|
jwtToken = _ref4.jwtToken,
|
|
40
40
|
_ref4$query = _ref4.query,
|
|
@@ -51,13 +51,25 @@ function usersFactory(_ref) {
|
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
// Deprecated. Use login instead.
|
|
55
|
+
function create(_ref5) {
|
|
55
56
|
var token = _ref5.token,
|
|
56
57
|
jwtToken = _ref5.jwtToken,
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
_ref5$query = _ref5.query,
|
|
59
|
+
query = _ref5$query === undefined ? {} : _ref5$query,
|
|
60
|
+
data = _ref5.data,
|
|
59
61
|
headers = _ref5.headers;
|
|
60
62
|
|
|
63
|
+
return login({ token: token, jwtToken: jwtToken, query: query, data: data, headers: headers });
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function update(_ref6) {
|
|
67
|
+
var token = _ref6.token,
|
|
68
|
+
jwtToken = _ref6.jwtToken,
|
|
69
|
+
userId = _ref6.userId,
|
|
70
|
+
user = _ref6.user,
|
|
71
|
+
headers = _ref6.headers;
|
|
72
|
+
|
|
61
73
|
return client({
|
|
62
74
|
url: "/users/" + userId,
|
|
63
75
|
method: "put",
|
|
@@ -66,13 +78,27 @@ function usersFactory(_ref) {
|
|
|
66
78
|
});
|
|
67
79
|
}
|
|
68
80
|
|
|
81
|
+
function createOrUpdateMany(_ref7) {
|
|
82
|
+
var token = _ref7.token,
|
|
83
|
+
jwtToken = _ref7.jwtToken,
|
|
84
|
+
users = _ref7.users,
|
|
85
|
+
headers = _ref7.headers;
|
|
86
|
+
|
|
87
|
+
return client({
|
|
88
|
+
url: "/users/import",
|
|
89
|
+
method: "post",
|
|
90
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
91
|
+
data: { users: users }
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
|
|
69
95
|
var sequences = {
|
|
70
|
-
create: function create(
|
|
71
|
-
var jwtToken =
|
|
72
|
-
token =
|
|
73
|
-
userId =
|
|
74
|
-
sequence =
|
|
75
|
-
headers =
|
|
96
|
+
create: function create(_ref8) {
|
|
97
|
+
var jwtToken = _ref8.jwtToken,
|
|
98
|
+
token = _ref8.token,
|
|
99
|
+
userId = _ref8.userId,
|
|
100
|
+
sequence = _ref8.sequence,
|
|
101
|
+
headers = _ref8.headers;
|
|
76
102
|
|
|
77
103
|
return client({
|
|
78
104
|
url: "/users/" + userId + "/sequences",
|
|
@@ -81,13 +107,13 @@ function usersFactory(_ref) {
|
|
|
81
107
|
data: sequence
|
|
82
108
|
});
|
|
83
109
|
},
|
|
84
|
-
update: function update(
|
|
85
|
-
var jwtToken =
|
|
86
|
-
token =
|
|
87
|
-
userId =
|
|
88
|
-
sequenceId =
|
|
89
|
-
sequence =
|
|
90
|
-
headers =
|
|
110
|
+
update: function update(_ref9) {
|
|
111
|
+
var jwtToken = _ref9.jwtToken,
|
|
112
|
+
token = _ref9.token,
|
|
113
|
+
userId = _ref9.userId,
|
|
114
|
+
sequenceId = _ref9.sequenceId,
|
|
115
|
+
sequence = _ref9.sequence,
|
|
116
|
+
headers = _ref9.headers;
|
|
91
117
|
|
|
92
118
|
return client({
|
|
93
119
|
url: "/users/" + userId + "/sequences/" + sequenceId,
|
|
@@ -96,13 +122,13 @@ function usersFactory(_ref) {
|
|
|
96
122
|
data: sequence
|
|
97
123
|
});
|
|
98
124
|
},
|
|
99
|
-
transfer: function transfer(
|
|
100
|
-
var jwtToken =
|
|
101
|
-
token =
|
|
102
|
-
userId =
|
|
103
|
-
sequenceId =
|
|
104
|
-
newUserId =
|
|
105
|
-
headers =
|
|
125
|
+
transfer: function transfer(_ref10) {
|
|
126
|
+
var jwtToken = _ref10.jwtToken,
|
|
127
|
+
token = _ref10.token,
|
|
128
|
+
userId = _ref10.userId,
|
|
129
|
+
sequenceId = _ref10.sequenceId,
|
|
130
|
+
newUserId = _ref10.newUserId,
|
|
131
|
+
headers = _ref10.headers;
|
|
106
132
|
|
|
107
133
|
return client({
|
|
108
134
|
url: "/users/" + userId + "/sequences/" + sequenceId,
|
|
@@ -120,7 +146,9 @@ function usersFactory(_ref) {
|
|
|
120
146
|
get: get,
|
|
121
147
|
all: all,
|
|
122
148
|
create: create,
|
|
149
|
+
login: login,
|
|
123
150
|
update: update,
|
|
151
|
+
createOrUpdateMany: createOrUpdateMany,
|
|
124
152
|
sequences: sequences
|
|
125
153
|
};
|
|
126
154
|
}
|
|
@@ -126,17 +126,31 @@ function cartFactory(_ref) {
|
|
|
126
126
|
method: "delete",
|
|
127
127
|
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
128
128
|
});
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
var taxExemptPaymentMethod = {
|
|
133
|
-
post: function post(_ref10) {
|
|
129
|
+
},
|
|
130
|
+
put: function put(_ref10) {
|
|
134
131
|
var token = _ref10.token,
|
|
135
132
|
cartId = _ref10.cartId,
|
|
136
133
|
jwtToken = _ref10.jwtToken,
|
|
137
134
|
headers = _ref10.headers,
|
|
138
|
-
|
|
139
|
-
|
|
135
|
+
payment = _ref10.payment;
|
|
136
|
+
|
|
137
|
+
return client({
|
|
138
|
+
url: "/carts/" + cartId + "/payments",
|
|
139
|
+
method: "put",
|
|
140
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
141
|
+
data: payment
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
var taxExemptPaymentMethod = {
|
|
147
|
+
post: function post(_ref11) {
|
|
148
|
+
var token = _ref11.token,
|
|
149
|
+
cartId = _ref11.cartId,
|
|
150
|
+
jwtToken = _ref11.jwtToken,
|
|
151
|
+
headers = _ref11.headers,
|
|
152
|
+
_ref11$data = _ref11.data,
|
|
153
|
+
data = _ref11$data === undefined ? {} : _ref11$data;
|
|
140
154
|
|
|
141
155
|
return client({
|
|
142
156
|
url: "/carts/" + cartId + "/tax-exempt-payment-method",
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ function usersFactory({client, internalAuthTokenProvider}) {
|
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
function
|
|
19
|
+
function login({token, jwtToken, query = {}, data, headers}) {
|
|
20
20
|
return client({
|
|
21
21
|
url: "/users",
|
|
22
22
|
method: "post",
|
|
@@ -26,6 +26,11 @@ function usersFactory({client, internalAuthTokenProvider}) {
|
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
// Deprecated. Use login instead.
|
|
30
|
+
function create({token, jwtToken, query = {}, data, headers}) {
|
|
31
|
+
return login({token, jwtToken, query, data, headers});
|
|
32
|
+
}
|
|
33
|
+
|
|
29
34
|
function update({token, jwtToken, userId, user, headers}) {
|
|
30
35
|
return client({
|
|
31
36
|
url: `/users/${userId}`,
|
|
@@ -35,6 +40,15 @@ function usersFactory({client, internalAuthTokenProvider}) {
|
|
|
35
40
|
});
|
|
36
41
|
}
|
|
37
42
|
|
|
43
|
+
function createOrUpdateMany({token, jwtToken, users, headers}) {
|
|
44
|
+
return client({
|
|
45
|
+
url: "/users/import",
|
|
46
|
+
method: "post",
|
|
47
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
48
|
+
data: {users}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
|
|
38
52
|
const sequences = {
|
|
39
53
|
create({jwtToken, token, userId, sequence, headers}) {
|
|
40
54
|
return client({
|
|
@@ -69,7 +83,9 @@ function usersFactory({client, internalAuthTokenProvider}) {
|
|
|
69
83
|
get,
|
|
70
84
|
all,
|
|
71
85
|
create,
|
|
86
|
+
login,
|
|
72
87
|
update,
|
|
88
|
+
createOrUpdateMany,
|
|
73
89
|
sequences
|
|
74
90
|
};
|
|
75
91
|
}
|
|
@@ -76,6 +76,14 @@ function cartFactory({client, internalAuthTokenProvider}) {
|
|
|
76
76
|
method: "delete",
|
|
77
77
|
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers})
|
|
78
78
|
});
|
|
79
|
+
},
|
|
80
|
+
put({token, cartId, jwtToken, headers, payment}) {
|
|
81
|
+
return client({
|
|
82
|
+
url: `/carts/${cartId}/payments`,
|
|
83
|
+
method: "put",
|
|
84
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
85
|
+
data: payment
|
|
86
|
+
});
|
|
79
87
|
}
|
|
80
88
|
};
|
|
81
89
|
|
|
@@ -88,7 +96,7 @@ function cartFactory({client, internalAuthTokenProvider}) {
|
|
|
88
96
|
data
|
|
89
97
|
});
|
|
90
98
|
}
|
|
91
|
-
}
|
|
99
|
+
};
|
|
92
100
|
|
|
93
101
|
return {
|
|
94
102
|
get,
|
|
@@ -30,6 +30,16 @@ describe("accounts/user/{id}", () => {
|
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
32
|
|
|
33
|
+
it("should sign in a user", () => {
|
|
34
|
+
const data = {audience: "lala"};
|
|
35
|
+
axiosMock.onPost("/users").reply(expectRequest({statusCode: 200, token, jwtToken, body: data}));
|
|
36
|
+
return api.accounts.users.login({
|
|
37
|
+
jwtToken,
|
|
38
|
+
token,
|
|
39
|
+
data
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
|
|
33
43
|
it("should update a user", () => {
|
|
34
44
|
const userId = "627a25404a761f0fcbdbdfc1";
|
|
35
45
|
const user = {
|
|
@@ -46,6 +56,22 @@ describe("accounts/user/{id}", () => {
|
|
|
46
56
|
});
|
|
47
57
|
});
|
|
48
58
|
|
|
59
|
+
it("should create a user", () => {
|
|
60
|
+
const user = {
|
|
61
|
+
firstName: "Jane",
|
|
62
|
+
lastName: "Doe",
|
|
63
|
+
display: "JD",
|
|
64
|
+
email: "test@something.com",
|
|
65
|
+
password: "123456"
|
|
66
|
+
};
|
|
67
|
+
axiosMock.onPost("/users/import").reply(expectRequest({statusCode: 200, token, jwtToken, body: {users: [user]}}));
|
|
68
|
+
return api.accounts.users.createOrUpdateMany({
|
|
69
|
+
jwtToken,
|
|
70
|
+
token,
|
|
71
|
+
users: [user]
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
|
|
49
75
|
it("should create user sequence", () => {
|
|
50
76
|
const userSequenceData = {};
|
|
51
77
|
axiosMock.onPost(`/users/${id}/sequences`).reply(expectRequest({statusCode: 200, token, jwtToken, body: userSequenceData}));
|
|
@@ -70,6 +70,12 @@ describe("sales/cart", () => {
|
|
|
70
70
|
return api.sales.cart.payments.delete({jwtToken, token, cartId});
|
|
71
71
|
});
|
|
72
72
|
|
|
73
|
+
it("should update payments from a cart", () => {
|
|
74
|
+
const cartId = "someCartId";
|
|
75
|
+
axiosMock.onPut(`/carts/${cartId}/payments`).reply(expectRequest({statusCode: 204, token, jwtToken}));
|
|
76
|
+
return api.sales.cart.payments.put({jwtToken, token, cartId});
|
|
77
|
+
});
|
|
78
|
+
|
|
73
79
|
it("should post a mount with tax exempt from the payment method", () => {
|
|
74
80
|
const cartId = "thisCartId";
|
|
75
81
|
axiosMock.onPost(`/carts/${cartId}/tax-exempt-payment-method`).reply(expectRequest({statusCode: 200, token, jwtToken}));
|
package/types/client.d.ts
CHANGED
|
@@ -1798,12 +1798,7 @@ export function createApiClient(options: {
|
|
|
1798
1798
|
};
|
|
1799
1799
|
dynamicForms: {
|
|
1800
1800
|
fields: {
|
|
1801
|
-
get({ token, jwtToken, dynamicFormFieldId, headers }?: {
|
|
1802
|
-
token: any;
|
|
1803
|
-
jwtToken: any;
|
|
1804
|
-
dynamicFormFieldId: any;
|
|
1805
|
-
headers: any;
|
|
1806
|
-
}): any;
|
|
1801
|
+
get({ token, jwtToken, dynamicFormFieldId, headers }?: {}): any;
|
|
1807
1802
|
all({ token, jwtToken, query, headers }: {
|
|
1808
1803
|
token: any;
|
|
1809
1804
|
jwtToken: any;
|
|
@@ -2505,19 +2500,21 @@ export function createApiClient(options: {
|
|
|
2505
2500
|
}) => any;
|
|
2506
2501
|
};
|
|
2507
2502
|
users: {
|
|
2508
|
-
get: ({ token, jwtToken, id, headers }?: {
|
|
2503
|
+
get: ({ token, jwtToken, id, headers }?: {}) => any;
|
|
2504
|
+
all: ({ token, jwtToken, query, headers }: {
|
|
2509
2505
|
token: any;
|
|
2510
2506
|
jwtToken: any;
|
|
2511
|
-
|
|
2507
|
+
query?: {};
|
|
2512
2508
|
headers: any;
|
|
2513
2509
|
}) => any;
|
|
2514
|
-
|
|
2510
|
+
create: ({ token, jwtToken, query, data, headers }: {
|
|
2515
2511
|
token: any;
|
|
2516
2512
|
jwtToken: any;
|
|
2517
2513
|
query?: {};
|
|
2514
|
+
data: any;
|
|
2518
2515
|
headers: any;
|
|
2519
2516
|
}) => any;
|
|
2520
|
-
|
|
2517
|
+
login: ({ token, jwtToken, query, data, headers }: {
|
|
2521
2518
|
token: any;
|
|
2522
2519
|
jwtToken: any;
|
|
2523
2520
|
query?: {};
|
|
@@ -2531,6 +2528,12 @@ export function createApiClient(options: {
|
|
|
2531
2528
|
user: any;
|
|
2532
2529
|
headers: any;
|
|
2533
2530
|
}) => any;
|
|
2531
|
+
createOrUpdateMany: ({ token, jwtToken, users, headers }: {
|
|
2532
|
+
token: any;
|
|
2533
|
+
jwtToken: any;
|
|
2534
|
+
users: any;
|
|
2535
|
+
headers: any;
|
|
2536
|
+
}) => any;
|
|
2534
2537
|
sequences: {
|
|
2535
2538
|
create({ jwtToken, token, userId, sequence, headers }: {
|
|
2536
2539
|
jwtToken: any;
|
|
@@ -2654,6 +2657,13 @@ export function createApiClient(options: {
|
|
|
2654
2657
|
jwtToken: any;
|
|
2655
2658
|
headers: any;
|
|
2656
2659
|
}): any;
|
|
2660
|
+
put({ token, cartId, jwtToken, headers, payment }: {
|
|
2661
|
+
token: any;
|
|
2662
|
+
cartId: any;
|
|
2663
|
+
jwtToken: any;
|
|
2664
|
+
headers: any;
|
|
2665
|
+
payment: any;
|
|
2666
|
+
}): any;
|
|
2657
2667
|
};
|
|
2658
2668
|
taxExemptPaymentMethod: {
|
|
2659
2669
|
post({ token, cartId, jwtToken, headers, data }: {
|
|
@@ -2777,7 +2787,7 @@ export function createApiClient(options: {
|
|
|
2777
2787
|
create: ({ token, jwtToken, cancelData, headers }: {
|
|
2778
2788
|
token: string;
|
|
2779
2789
|
jwtToken: string;
|
|
2780
|
-
cancelData:
|
|
2790
|
+
cancelData: CancelSetData;
|
|
2781
2791
|
headers: any;
|
|
2782
2792
|
}) => Promise<any>;
|
|
2783
2793
|
};
|
|
@@ -3606,7 +3616,7 @@ export function createApiClient(options: {
|
|
|
3606
3616
|
jwtToken: any;
|
|
3607
3617
|
phoneNumberData?: {};
|
|
3608
3618
|
headers: any;
|
|
3609
|
-
}): any;
|
|
3619
|
+
}): any;
|
|
3610
3620
|
};
|
|
3611
3621
|
sms: {
|
|
3612
3622
|
create({ token, jwtToken, smsMsg, headers }: {
|
|
@@ -4,12 +4,7 @@ declare function dynamicFormsFactory({ client, internalAuthTokenProvider }: {
|
|
|
4
4
|
internalAuthTokenProvider: any;
|
|
5
5
|
}): {
|
|
6
6
|
fields: {
|
|
7
|
-
get({ token, jwtToken, dynamicFormFieldId, headers }?: {
|
|
8
|
-
token: any;
|
|
9
|
-
jwtToken: any;
|
|
10
|
-
dynamicFormFieldId: any;
|
|
11
|
-
headers: any;
|
|
12
|
-
}): any;
|
|
7
|
+
get({ token, jwtToken, dynamicFormFieldId, headers }?: {}): any;
|
|
13
8
|
all({ token, jwtToken, query, headers }: {
|
|
14
9
|
token: any;
|
|
15
10
|
jwtToken: any;
|
|
@@ -3,19 +3,21 @@ declare function usersFactory({ client, internalAuthTokenProvider }: {
|
|
|
3
3
|
client: any;
|
|
4
4
|
internalAuthTokenProvider: any;
|
|
5
5
|
}): {
|
|
6
|
-
get: ({ token, jwtToken, id, headers }?: {
|
|
6
|
+
get: ({ token, jwtToken, id, headers }?: {}) => any;
|
|
7
|
+
all: ({ token, jwtToken, query, headers }: {
|
|
7
8
|
token: any;
|
|
8
9
|
jwtToken: any;
|
|
9
|
-
|
|
10
|
+
query?: {};
|
|
10
11
|
headers: any;
|
|
11
12
|
}) => any;
|
|
12
|
-
|
|
13
|
+
create: ({ token, jwtToken, query, data, headers }: {
|
|
13
14
|
token: any;
|
|
14
15
|
jwtToken: any;
|
|
15
16
|
query?: {};
|
|
17
|
+
data: any;
|
|
16
18
|
headers: any;
|
|
17
19
|
}) => any;
|
|
18
|
-
|
|
20
|
+
login: ({ token, jwtToken, query, data, headers }: {
|
|
19
21
|
token: any;
|
|
20
22
|
jwtToken: any;
|
|
21
23
|
query?: {};
|
|
@@ -29,6 +31,12 @@ declare function usersFactory({ client, internalAuthTokenProvider }: {
|
|
|
29
31
|
user: any;
|
|
30
32
|
headers: any;
|
|
31
33
|
}) => any;
|
|
34
|
+
createOrUpdateMany: ({ token, jwtToken, users, headers }: {
|
|
35
|
+
token: any;
|
|
36
|
+
jwtToken: any;
|
|
37
|
+
users: any;
|
|
38
|
+
headers: any;
|
|
39
|
+
}) => any;
|
|
32
40
|
sequences: {
|
|
33
41
|
create({ jwtToken, token, userId, sequence, headers }: {
|
|
34
42
|
jwtToken: any;
|
|
@@ -60,6 +60,13 @@ declare function cartFactory({ client, internalAuthTokenProvider }: {
|
|
|
60
60
|
jwtToken: any;
|
|
61
61
|
headers: any;
|
|
62
62
|
}): any;
|
|
63
|
+
put({ token, cartId, jwtToken, headers, payment }: {
|
|
64
|
+
token: any;
|
|
65
|
+
cartId: any;
|
|
66
|
+
jwtToken: any;
|
|
67
|
+
headers: any;
|
|
68
|
+
payment: any;
|
|
69
|
+
}): any;
|
|
63
70
|
};
|
|
64
71
|
taxExemptPaymentMethod: {
|
|
65
72
|
post({ token, cartId, jwtToken, headers, data }: {
|
|
@@ -1752,12 +1752,7 @@ declare const _exports: {
|
|
|
1752
1752
|
};
|
|
1753
1753
|
dynamicForms: {
|
|
1754
1754
|
fields: {
|
|
1755
|
-
get({ token, jwtToken, dynamicFormFieldId, headers }?: {
|
|
1756
|
-
token: any;
|
|
1757
|
-
jwtToken: any;
|
|
1758
|
-
dynamicFormFieldId: any;
|
|
1759
|
-
headers: any;
|
|
1760
|
-
}): any;
|
|
1755
|
+
get({ token, jwtToken, dynamicFormFieldId, headers }?: {}): any;
|
|
1761
1756
|
all({ token, jwtToken, query, headers }: {
|
|
1762
1757
|
token: any;
|
|
1763
1758
|
jwtToken: any;
|
|
@@ -2459,19 +2454,21 @@ declare const _exports: {
|
|
|
2459
2454
|
}) => any;
|
|
2460
2455
|
};
|
|
2461
2456
|
users: {
|
|
2462
|
-
get: ({ token, jwtToken, id, headers }?: {
|
|
2457
|
+
get: ({ token, jwtToken, id, headers }?: {}) => any;
|
|
2458
|
+
all: ({ token, jwtToken, query, headers }: {
|
|
2463
2459
|
token: any;
|
|
2464
2460
|
jwtToken: any;
|
|
2465
|
-
|
|
2461
|
+
query?: {};
|
|
2466
2462
|
headers: any;
|
|
2467
2463
|
}) => any;
|
|
2468
|
-
|
|
2464
|
+
create: ({ token, jwtToken, query, data, headers }: {
|
|
2469
2465
|
token: any;
|
|
2470
2466
|
jwtToken: any;
|
|
2471
2467
|
query?: {};
|
|
2468
|
+
data: any;
|
|
2472
2469
|
headers: any;
|
|
2473
2470
|
}) => any;
|
|
2474
|
-
|
|
2471
|
+
login: ({ token, jwtToken, query, data, headers }: {
|
|
2475
2472
|
token: any;
|
|
2476
2473
|
jwtToken: any;
|
|
2477
2474
|
query?: {};
|
|
@@ -2485,6 +2482,12 @@ declare const _exports: {
|
|
|
2485
2482
|
user: any;
|
|
2486
2483
|
headers: any;
|
|
2487
2484
|
}) => any;
|
|
2485
|
+
createOrUpdateMany: ({ token, jwtToken, users, headers }: {
|
|
2486
|
+
token: any;
|
|
2487
|
+
jwtToken: any;
|
|
2488
|
+
users: any;
|
|
2489
|
+
headers: any;
|
|
2490
|
+
}) => any;
|
|
2488
2491
|
sequences: {
|
|
2489
2492
|
create({ jwtToken, token, userId, sequence, headers }: {
|
|
2490
2493
|
jwtToken: any;
|
|
@@ -2608,6 +2611,13 @@ declare const _exports: {
|
|
|
2608
2611
|
jwtToken: any;
|
|
2609
2612
|
headers: any;
|
|
2610
2613
|
}): any;
|
|
2614
|
+
put({ token, cartId, jwtToken, headers, payment }: {
|
|
2615
|
+
token: any;
|
|
2616
|
+
cartId: any;
|
|
2617
|
+
jwtToken: any;
|
|
2618
|
+
headers: any;
|
|
2619
|
+
payment: any;
|
|
2620
|
+
}): any;
|
|
2611
2621
|
};
|
|
2612
2622
|
taxExemptPaymentMethod: {
|
|
2613
2623
|
post({ token, cartId, jwtToken, headers, data }: {
|
|
@@ -2731,7 +2741,7 @@ declare const _exports: {
|
|
|
2731
2741
|
create: ({ token, jwtToken, cancelData, headers }: {
|
|
2732
2742
|
token: string;
|
|
2733
2743
|
jwtToken: string;
|
|
2734
|
-
cancelData:
|
|
2744
|
+
cancelData: CancelSetData;
|
|
2735
2745
|
headers: any;
|
|
2736
2746
|
}) => Promise<any>;
|
|
2737
2747
|
};
|