btrz-api-client 5.25.0 → 5.28.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 -1
- package/lib/client.js +3 -0
- package/lib/endpoints/accounts/sub-print-templates.js +33 -0
- package/lib/endpoints/inventory/fares.js +66 -1
- package/lib/endpoints/invoices/invoices.js +18 -1
- package/package.json +1 -1
- package/src/client.js +3 -0
- package/src/endpoints/accounts/sub-print-templates.js +24 -0
- package/src/endpoints/inventory/fares.js +44 -1
- package/src/endpoints/invoices/invoices.js +11 -1
- package/test/endpoints/accounts/sub-print-templates.test.js +29 -0
- package/test/endpoints/inventory/fares.test.js +52 -0
- package/test/endpoints/invoices/invoices.test.js +11 -0
- package/test/endpoints/invoices/providers.test.js +12 -0
- package/types/client.d.ts +45 -0
- package/types/endpoints/accounts/sub-print-templates.d.ts +12 -0
- package/types/endpoints/inventory/fares.d.ts +30 -0
- package/types/endpoints/invoices/invoices.d.ts +7 -0
- package/types/initializedClient.d.ts +45 -0
package/lib/client.js
CHANGED
|
@@ -179,6 +179,9 @@ function createAccounts(_ref4) {
|
|
|
179
179
|
printTemplates: require("./endpoints/accounts/print-templates.js")({
|
|
180
180
|
client: client, internalAuthTokenProvider: internalAuthTokenProvider
|
|
181
181
|
}),
|
|
182
|
+
subPrintTemplates: require("./endpoints/accounts/sub-print-templates.js")({
|
|
183
|
+
client: client, internalAuthTokenProvider: internalAuthTokenProvider
|
|
184
|
+
}),
|
|
182
185
|
shifts: require("./endpoints/accounts/shifts.js")({ client: client, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
183
186
|
travellers: require("./endpoints/accounts/travellers.js")({
|
|
184
187
|
client: client, internalAuthTokenProvider: internalAuthTokenProvider
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _require = require("./../endpoints_helpers"),
|
|
4
|
+
authorizationHeaders = _require.authorizationHeaders;
|
|
5
|
+
|
|
6
|
+
function subPrintTemplatesFactory(_ref) {
|
|
7
|
+
var client = _ref.client,
|
|
8
|
+
internalAuthTokenProvider = _ref.internalAuthTokenProvider;
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
function create(_ref2) {
|
|
12
|
+
var jwtToken = _ref2.jwtToken,
|
|
13
|
+
token = _ref2.token,
|
|
14
|
+
subPrintTemplate = _ref2.subPrintTemplate,
|
|
15
|
+
headers = _ref2.headers;
|
|
16
|
+
|
|
17
|
+
return client({
|
|
18
|
+
url: "/sub-print-templates",
|
|
19
|
+
method: "post",
|
|
20
|
+
headers: authorizationHeaders({
|
|
21
|
+
token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers
|
|
22
|
+
}),
|
|
23
|
+
data: {
|
|
24
|
+
subPrintTemplate: subPrintTemplate
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
create: create
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
module.exports = subPrintTemplatesFactory;
|
|
@@ -30,9 +30,74 @@ function faresFactory(_ref) {
|
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
function create(_ref4) {
|
|
34
|
+
var token = _ref4.token,
|
|
35
|
+
jwtToken = _ref4.jwtToken,
|
|
36
|
+
fare = _ref4.fare,
|
|
37
|
+
headers = _ref4.headers;
|
|
38
|
+
|
|
39
|
+
return client({
|
|
40
|
+
url: "/fares",
|
|
41
|
+
method: "post",
|
|
42
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
43
|
+
data: { fare: fare }
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function update(_ref5) {
|
|
48
|
+
var token = _ref5.token,
|
|
49
|
+
jwtToken = _ref5.jwtToken,
|
|
50
|
+
fareId = _ref5.fareId,
|
|
51
|
+
fare = _ref5.fare,
|
|
52
|
+
headers = _ref5.headers;
|
|
53
|
+
|
|
54
|
+
return client({
|
|
55
|
+
url: "/fare/" + fareId,
|
|
56
|
+
method: "put",
|
|
57
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
58
|
+
data: { fare: fare }
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
var adjustments = {
|
|
63
|
+
create: function create(_ref6) {
|
|
64
|
+
var token = _ref6.token,
|
|
65
|
+
jwtToken = _ref6.jwtToken,
|
|
66
|
+
fareId = _ref6.fareId,
|
|
67
|
+
adjustmentsOverride = _ref6.adjustmentsOverride,
|
|
68
|
+
headers = _ref6.headers;
|
|
69
|
+
|
|
70
|
+
return client({
|
|
71
|
+
url: "/fares/" + fareId + "/adjustments-overrides",
|
|
72
|
+
method: "post",
|
|
73
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
74
|
+
data: { adjustmentsOverride: adjustmentsOverride }
|
|
75
|
+
});
|
|
76
|
+
},
|
|
77
|
+
remove: function remove(_ref7) {
|
|
78
|
+
var printTemplateId = _ref7.printTemplateId,
|
|
79
|
+
token = _ref7.token,
|
|
80
|
+
jwtToken = _ref7.jwtToken,
|
|
81
|
+
fareId = _ref7.fareId,
|
|
82
|
+
adjustmentId = _ref7.adjustmentId,
|
|
83
|
+
headers = _ref7.headers;
|
|
84
|
+
|
|
85
|
+
return client({
|
|
86
|
+
url: "/fares/" + fareId + "/adjustments-overrides/" + adjustmentId,
|
|
87
|
+
method: "delete",
|
|
88
|
+
headers: authorizationHeaders({
|
|
89
|
+
token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers
|
|
90
|
+
})
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
|
|
33
95
|
return {
|
|
34
96
|
all: all,
|
|
35
|
-
get: get
|
|
97
|
+
get: get,
|
|
98
|
+
update: update,
|
|
99
|
+
create: create,
|
|
100
|
+
adjustments: adjustments
|
|
36
101
|
};
|
|
37
102
|
}
|
|
38
103
|
|
|
@@ -22,8 +22,25 @@ function invoicesFactory(_ref) {
|
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
function get(_ref3) {
|
|
26
|
+
var token = _ref3.token,
|
|
27
|
+
jwtToken = _ref3.jwtToken,
|
|
28
|
+
id = _ref3.id,
|
|
29
|
+
_ref3$query = _ref3.query,
|
|
30
|
+
query = _ref3$query === undefined ? {} : _ref3$query,
|
|
31
|
+
headers = _ref3.headers;
|
|
32
|
+
|
|
33
|
+
return client({
|
|
34
|
+
url: "/invoices/" + id,
|
|
35
|
+
method: "get",
|
|
36
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
37
|
+
params: query
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
25
41
|
return {
|
|
26
|
-
all: all
|
|
42
|
+
all: all,
|
|
43
|
+
get: get
|
|
27
44
|
};
|
|
28
45
|
}
|
|
29
46
|
|
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -145,6 +145,9 @@ function createAccounts({baseURL, headers, timeout, overrideFn, internalAuthToke
|
|
|
145
145
|
printTemplates: require("./endpoints/accounts/print-templates.js")({
|
|
146
146
|
client, internalAuthTokenProvider
|
|
147
147
|
}),
|
|
148
|
+
subPrintTemplates: require("./endpoints/accounts/sub-print-templates.js")({
|
|
149
|
+
client, internalAuthTokenProvider
|
|
150
|
+
}),
|
|
148
151
|
shifts: require("./endpoints/accounts/shifts.js")({client, internalAuthTokenProvider}),
|
|
149
152
|
travellers: require("./endpoints/accounts/travellers.js")({
|
|
150
153
|
client, internalAuthTokenProvider
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const {
|
|
2
|
+
authorizationHeaders
|
|
3
|
+
} = require("./../endpoints_helpers");
|
|
4
|
+
|
|
5
|
+
function subPrintTemplatesFactory({client, internalAuthTokenProvider}) {
|
|
6
|
+
|
|
7
|
+
function create({jwtToken, token, subPrintTemplate, headers}) {
|
|
8
|
+
return client({
|
|
9
|
+
url: "/sub-print-templates",
|
|
10
|
+
method: "post",
|
|
11
|
+
headers: authorizationHeaders({
|
|
12
|
+
token, jwtToken, internalAuthTokenProvider, headers
|
|
13
|
+
}),
|
|
14
|
+
data: {
|
|
15
|
+
subPrintTemplate
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return {
|
|
20
|
+
create
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
module.exports = subPrintTemplatesFactory;
|
|
@@ -15,9 +15,52 @@ function faresFactory({client, internalAuthTokenProvider}) {
|
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
function create({ token, jwtToken, fare, headers }) {
|
|
19
|
+
return client({
|
|
20
|
+
url: "/fares",
|
|
21
|
+
method: "post",
|
|
22
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
23
|
+
data: { fare }
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function update({ token, jwtToken, fareId, fare, headers }) {
|
|
28
|
+
return client({
|
|
29
|
+
url: "/fare/" + fareId,
|
|
30
|
+
method: "put",
|
|
31
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
32
|
+
data: { fare }
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const adjustments = {
|
|
37
|
+
create({ token, jwtToken, fareId, adjustmentsOverride, headers }) {
|
|
38
|
+
return client({
|
|
39
|
+
url: "/fares/" + fareId + "/adjustments-overrides",
|
|
40
|
+
method: "post",
|
|
41
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
42
|
+
data: { adjustmentsOverride }
|
|
43
|
+
});
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
remove({printTemplateId, token, jwtToken, fareId, adjustmentId, headers}) {
|
|
47
|
+
return client({
|
|
48
|
+
url: "/fares/" + fareId + "/adjustments-overrides/" + adjustmentId,
|
|
49
|
+
method: "delete",
|
|
50
|
+
headers: authorizationHeaders({
|
|
51
|
+
token, jwtToken, internalAuthTokenProvider, headers
|
|
52
|
+
})
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
};
|
|
57
|
+
|
|
18
58
|
return {
|
|
19
59
|
all,
|
|
20
|
-
get
|
|
60
|
+
get,
|
|
61
|
+
update,
|
|
62
|
+
create,
|
|
63
|
+
adjustments
|
|
21
64
|
};
|
|
22
65
|
|
|
23
66
|
}
|
|
@@ -10,8 +10,18 @@ function invoicesFactory({client, internalAuthTokenProvider}) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
function get({token, jwtToken, id, query = {}, headers}) {
|
|
14
|
+
return client({
|
|
15
|
+
url: `/invoices/${id}`,
|
|
16
|
+
method: "get",
|
|
17
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
18
|
+
params: query
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
13
22
|
return {
|
|
14
|
-
all
|
|
23
|
+
all,
|
|
24
|
+
get
|
|
15
25
|
};
|
|
16
26
|
}
|
|
17
27
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const {axiosMock, expectRequest} = require("./../../test-helpers");
|
|
2
|
+
const api = require("./../../../src/client").createApiClient({baseURL: "http://test.com"});
|
|
3
|
+
|
|
4
|
+
describe("accounts/accounts/sub-print-templates", () => {
|
|
5
|
+
const token = "I owe you a token";
|
|
6
|
+
const jwtToken = "secret";
|
|
7
|
+
|
|
8
|
+
afterEach(() => {
|
|
9
|
+
axiosMock.reset();
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
it("should create a sub print template", () => {
|
|
13
|
+
const subPrintTemplate = {
|
|
14
|
+
agencyId: "A",
|
|
15
|
+
mainTemplateId: "abc"
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
axiosMock.onPost("/sub-print-templates")
|
|
19
|
+
.reply(expectRequest({
|
|
20
|
+
statusCode: 200,
|
|
21
|
+
token,
|
|
22
|
+
jwtToken
|
|
23
|
+
}));
|
|
24
|
+
return api.accounts.subPrintTemplates.create({
|
|
25
|
+
token, jwtToken, subPrintTemplate
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
});
|
|
@@ -3,6 +3,7 @@ const api = require("./../../../src/client").createApiClient({ baseURL: "http://
|
|
|
3
3
|
|
|
4
4
|
describe('inventory/fares', function() {
|
|
5
5
|
const token = 'I owe you a token';
|
|
6
|
+
const jwtToken = "I owe you a JWT token";
|
|
6
7
|
|
|
7
8
|
afterEach(function() {
|
|
8
9
|
axiosMock.reset();
|
|
@@ -19,4 +20,55 @@ describe('inventory/fares', function() {
|
|
|
19
20
|
return api.inventory.fares.get({ token, id });
|
|
20
21
|
});
|
|
21
22
|
|
|
23
|
+
it("should create a fare", () => {
|
|
24
|
+
const fare = {
|
|
25
|
+
name: "newFare",
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
axiosMock.onPost("/fares").reply(expectRequest({statusCode: 200, token, jwtToken}));
|
|
29
|
+
return api.inventory.fares.create({
|
|
30
|
+
jwtToken,
|
|
31
|
+
token,
|
|
32
|
+
fare
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
it("should update a fare", () => {
|
|
37
|
+
const fareId = "123123123123";
|
|
38
|
+
const fare = {
|
|
39
|
+
name: "newFare",
|
|
40
|
+
};
|
|
41
|
+
axiosMock.onPut(`/fare/${fareId}`).reply(expectRequest({statusCode: 200, token, jwtToken}));
|
|
42
|
+
return api.inventory.fares.update({jwtToken, token, fareId, fare});
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
it("should create an adjustment", () => {
|
|
46
|
+
const fareId = "123123123123";
|
|
47
|
+
const adjustmentsOverride = {
|
|
48
|
+
name: "newAdjustment",
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
axiosMock.onPost(`/fares/${fareId}/adjustments-overrides`).reply(expectRequest({statusCode: 200, token, jwtToken}));
|
|
52
|
+
return api.inventory.fares.adjustments.create({
|
|
53
|
+
jwtToken,
|
|
54
|
+
token,
|
|
55
|
+
fareId,
|
|
56
|
+
adjustmentsOverride
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
it("should remove an adjustment", () => {
|
|
61
|
+
const fareId = "123123123123";
|
|
62
|
+
const adjustmentId = "454545454545";
|
|
63
|
+
|
|
64
|
+
axiosMock.onDelete(`/fares/${fareId}/adjustments-overrides/${adjustmentId}`).reply(expectRequest({statusCode: 200, token, jwtToken}));
|
|
65
|
+
return api.inventory.fares.adjustments.remove({
|
|
66
|
+
jwtToken,
|
|
67
|
+
token,
|
|
68
|
+
fareId,
|
|
69
|
+
adjustmentId
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
|
|
22
74
|
});
|
|
@@ -14,4 +14,15 @@ describe("invoices/invoices", () => {
|
|
|
14
14
|
axiosMock.onGet("/invoices", query).reply(expectRequest({statusCode: 200, token, jwtToken}));
|
|
15
15
|
return api.invoices.invoices.all({token, jwtToken, query});
|
|
16
16
|
});
|
|
17
|
+
|
|
18
|
+
it("should return a single invoices", () => {
|
|
19
|
+
const id = "12312312312312";
|
|
20
|
+
axiosMock.onGet(`/invoices/${id}`)
|
|
21
|
+
.reply(expectRequest({
|
|
22
|
+
statusCode: 200,
|
|
23
|
+
token,
|
|
24
|
+
jwtToken
|
|
25
|
+
}));
|
|
26
|
+
return api.invoices.invoices.get({token, jwtToken, query: {}, id});
|
|
27
|
+
});
|
|
17
28
|
});
|
|
@@ -14,6 +14,18 @@ describe("invoices/providers", () => {
|
|
|
14
14
|
return api.invoices.providers.all({token, jwtToken});
|
|
15
15
|
});
|
|
16
16
|
|
|
17
|
+
|
|
18
|
+
it("should return a single provider", () => {
|
|
19
|
+
const id = "12312312312312";
|
|
20
|
+
axiosMock.onGet(`/providers/${id}`)
|
|
21
|
+
.reply(expectRequest({
|
|
22
|
+
statusCode: 200,
|
|
23
|
+
token,
|
|
24
|
+
jwtToken
|
|
25
|
+
}));
|
|
26
|
+
return api.invoices.providers.get({token, jwtToken, query: {}, id});
|
|
27
|
+
});
|
|
28
|
+
|
|
17
29
|
it("should create a provider", () => {
|
|
18
30
|
axiosMock.onPost("/providers").reply(expectRequest({statusCode: 200, token, jwtToken}));
|
|
19
31
|
return api.invoices.providers.create({
|
package/types/client.d.ts
CHANGED
|
@@ -195,6 +195,36 @@ export function createApiClient(options: {
|
|
|
195
195
|
id: any;
|
|
196
196
|
headers: any;
|
|
197
197
|
}) => any;
|
|
198
|
+
update: ({ token, jwtToken, fareId, fare, headers }: {
|
|
199
|
+
token: any;
|
|
200
|
+
jwtToken: any;
|
|
201
|
+
fareId: any;
|
|
202
|
+
fare: any;
|
|
203
|
+
headers: any;
|
|
204
|
+
}) => any;
|
|
205
|
+
create: ({ token, jwtToken, fare, headers }: {
|
|
206
|
+
token: any;
|
|
207
|
+
jwtToken: any;
|
|
208
|
+
fare: any;
|
|
209
|
+
headers: any;
|
|
210
|
+
}) => any;
|
|
211
|
+
adjustments: {
|
|
212
|
+
create({ token, jwtToken, fareId, adjustmentsOverride, headers }: {
|
|
213
|
+
token: any;
|
|
214
|
+
jwtToken: any;
|
|
215
|
+
fareId: any;
|
|
216
|
+
adjustmentsOverride: any;
|
|
217
|
+
headers: any;
|
|
218
|
+
}): any;
|
|
219
|
+
remove({ printTemplateId, token, jwtToken, fareId, adjustmentId, headers }: {
|
|
220
|
+
printTemplateId: any;
|
|
221
|
+
token: any;
|
|
222
|
+
jwtToken: any;
|
|
223
|
+
fareId: any;
|
|
224
|
+
adjustmentId: any;
|
|
225
|
+
headers: any;
|
|
226
|
+
}): any;
|
|
227
|
+
};
|
|
198
228
|
};
|
|
199
229
|
promos: {
|
|
200
230
|
all: ({ token, query, headers }: {
|
|
@@ -1415,6 +1445,14 @@ export function createApiClient(options: {
|
|
|
1415
1445
|
}): any;
|
|
1416
1446
|
};
|
|
1417
1447
|
};
|
|
1448
|
+
subPrintTemplates: {
|
|
1449
|
+
create: ({ jwtToken, token, subPrintTemplate, headers }: {
|
|
1450
|
+
jwtToken: any;
|
|
1451
|
+
token: any;
|
|
1452
|
+
subPrintTemplate: any;
|
|
1453
|
+
headers: any;
|
|
1454
|
+
}) => any;
|
|
1455
|
+
};
|
|
1418
1456
|
shifts: {
|
|
1419
1457
|
get: ({ token, userId, headers }: {
|
|
1420
1458
|
token: any;
|
|
@@ -2700,6 +2738,13 @@ export function createApiClient(options: {
|
|
|
2700
2738
|
query?: {};
|
|
2701
2739
|
headers: any;
|
|
2702
2740
|
}) => any;
|
|
2741
|
+
get: ({ token, jwtToken, id, query, headers }: {
|
|
2742
|
+
token: any;
|
|
2743
|
+
jwtToken: any;
|
|
2744
|
+
id: any;
|
|
2745
|
+
query?: {};
|
|
2746
|
+
headers: any;
|
|
2747
|
+
}) => any;
|
|
2703
2748
|
};
|
|
2704
2749
|
__test: {
|
|
2705
2750
|
client: axios.AxiosInstance;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export = subPrintTemplatesFactory;
|
|
2
|
+
declare function subPrintTemplatesFactory({ client, internalAuthTokenProvider }: {
|
|
3
|
+
client: any;
|
|
4
|
+
internalAuthTokenProvider: any;
|
|
5
|
+
}): {
|
|
6
|
+
create: ({ jwtToken, token, subPrintTemplate, headers }: {
|
|
7
|
+
jwtToken: any;
|
|
8
|
+
token: any;
|
|
9
|
+
subPrintTemplate: any;
|
|
10
|
+
headers: any;
|
|
11
|
+
}) => any;
|
|
12
|
+
};
|
|
@@ -13,4 +13,34 @@ declare function faresFactory({ client, internalAuthTokenProvider }: {
|
|
|
13
13
|
id: any;
|
|
14
14
|
headers: any;
|
|
15
15
|
}) => any;
|
|
16
|
+
update: ({ token, jwtToken, fareId, fare, headers }: {
|
|
17
|
+
token: any;
|
|
18
|
+
jwtToken: any;
|
|
19
|
+
fareId: any;
|
|
20
|
+
fare: any;
|
|
21
|
+
headers: any;
|
|
22
|
+
}) => any;
|
|
23
|
+
create: ({ token, jwtToken, fare, headers }: {
|
|
24
|
+
token: any;
|
|
25
|
+
jwtToken: any;
|
|
26
|
+
fare: any;
|
|
27
|
+
headers: any;
|
|
28
|
+
}) => any;
|
|
29
|
+
adjustments: {
|
|
30
|
+
create({ token, jwtToken, fareId, adjustmentsOverride, headers }: {
|
|
31
|
+
token: any;
|
|
32
|
+
jwtToken: any;
|
|
33
|
+
fareId: any;
|
|
34
|
+
adjustmentsOverride: any;
|
|
35
|
+
headers: any;
|
|
36
|
+
}): any;
|
|
37
|
+
remove({ printTemplateId, token, jwtToken, fareId, adjustmentId, headers }: {
|
|
38
|
+
printTemplateId: any;
|
|
39
|
+
token: any;
|
|
40
|
+
jwtToken: any;
|
|
41
|
+
fareId: any;
|
|
42
|
+
adjustmentId: any;
|
|
43
|
+
headers: any;
|
|
44
|
+
}): any;
|
|
45
|
+
};
|
|
16
46
|
};
|
|
@@ -9,4 +9,11 @@ declare function invoicesFactory({ client, internalAuthTokenProvider }: {
|
|
|
9
9
|
query?: {};
|
|
10
10
|
headers: any;
|
|
11
11
|
}) => any;
|
|
12
|
+
get: ({ token, jwtToken, id, query, headers }: {
|
|
13
|
+
token: any;
|
|
14
|
+
jwtToken: any;
|
|
15
|
+
id: any;
|
|
16
|
+
query?: {};
|
|
17
|
+
headers: any;
|
|
18
|
+
}) => any;
|
|
12
19
|
};
|
|
@@ -149,6 +149,36 @@ declare const _exports: {
|
|
|
149
149
|
id: any;
|
|
150
150
|
headers: any;
|
|
151
151
|
}) => any;
|
|
152
|
+
update: ({ token, jwtToken, fareId, fare, headers }: {
|
|
153
|
+
token: any;
|
|
154
|
+
jwtToken: any;
|
|
155
|
+
fareId: any;
|
|
156
|
+
fare: any;
|
|
157
|
+
headers: any;
|
|
158
|
+
}) => any;
|
|
159
|
+
create: ({ token, jwtToken, fare, headers }: {
|
|
160
|
+
token: any;
|
|
161
|
+
jwtToken: any;
|
|
162
|
+
fare: any;
|
|
163
|
+
headers: any;
|
|
164
|
+
}) => any;
|
|
165
|
+
adjustments: {
|
|
166
|
+
create({ token, jwtToken, fareId, adjustmentsOverride, headers }: {
|
|
167
|
+
token: any;
|
|
168
|
+
jwtToken: any;
|
|
169
|
+
fareId: any;
|
|
170
|
+
adjustmentsOverride: any;
|
|
171
|
+
headers: any;
|
|
172
|
+
}): any;
|
|
173
|
+
remove({ printTemplateId, token, jwtToken, fareId, adjustmentId, headers }: {
|
|
174
|
+
printTemplateId: any;
|
|
175
|
+
token: any;
|
|
176
|
+
jwtToken: any;
|
|
177
|
+
fareId: any;
|
|
178
|
+
adjustmentId: any;
|
|
179
|
+
headers: any;
|
|
180
|
+
}): any;
|
|
181
|
+
};
|
|
152
182
|
};
|
|
153
183
|
promos: {
|
|
154
184
|
all: ({ token, query, headers }: {
|
|
@@ -1369,6 +1399,14 @@ declare const _exports: {
|
|
|
1369
1399
|
}): any;
|
|
1370
1400
|
};
|
|
1371
1401
|
};
|
|
1402
|
+
subPrintTemplates: {
|
|
1403
|
+
create: ({ jwtToken, token, subPrintTemplate, headers }: {
|
|
1404
|
+
jwtToken: any;
|
|
1405
|
+
token: any;
|
|
1406
|
+
subPrintTemplate: any;
|
|
1407
|
+
headers: any;
|
|
1408
|
+
}) => any;
|
|
1409
|
+
};
|
|
1372
1410
|
shifts: {
|
|
1373
1411
|
get: ({ token, userId, headers }: {
|
|
1374
1412
|
token: any;
|
|
@@ -2653,6 +2691,13 @@ declare const _exports: {
|
|
|
2653
2691
|
query?: {};
|
|
2654
2692
|
headers: any;
|
|
2655
2693
|
}) => any;
|
|
2694
|
+
get: ({ token, jwtToken, id, query, headers }: {
|
|
2695
|
+
token: any;
|
|
2696
|
+
jwtToken: any;
|
|
2697
|
+
id: any;
|
|
2698
|
+
query?: {};
|
|
2699
|
+
headers: any;
|
|
2700
|
+
}) => any;
|
|
2656
2701
|
};
|
|
2657
2702
|
__test: {
|
|
2658
2703
|
client: import("axios").AxiosInstance;
|