btrz-api-client 5.186.0 → 5.188.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 +3 -3
- package/lib/client.js +1 -0
- package/lib/endpoints/inventory/schedule-groups.js +74 -0
- package/lib/endpoints/operations/rms.js +1 -1
- package/package.json +1 -1
- package/src/client.js +1 -0
- package/src/endpoints/inventory/schedule-groups.js +44 -0
- package/src/endpoints/operations/rms.js +1 -1
- package/test/endpoints/inventory/schedule-groups.test.js +57 -0
- package/test/endpoints/operations/rms.js +1 -1
- package/test-integration/endpoints/inventory/schedule-groups.test.js +84 -0
- package/types/client.d.ts +42 -4
- package/types/endpoints/accounts/dynamic-forms.d.ts +6 -1
- package/types/endpoints/accounts/users.d.ts +6 -1
- package/types/endpoints/inventory/schedule-groups.d.ts +32 -0
- package/types/initializedClient.d.ts +41 -3
package/lib/client.js
CHANGED
|
@@ -98,6 +98,7 @@ function createInventory(_ref) {
|
|
|
98
98
|
giftCertificateDefinitions: require("./endpoints/inventory/gift-certificate-definitions.js")({ client: client, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
99
99
|
amenities: require("./endpoints/inventory/amenities.js")({ client: client, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
100
100
|
amenityGroups: require("./endpoints/inventory/amenity-groups.js")({ client: client, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
101
|
+
scheduleGroups: require("./endpoints/inventory/schedule-groups.js")({ client: client, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
101
102
|
bundles: require("./endpoints/inventory/bundles.js")({ client: client, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
102
103
|
stationGroups: require("./endpoints/inventory/station-groups.js")({ client: client, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
103
104
|
zonePrices: require("./endpoints/inventory/zone-prices.js")({ client: client, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _require = require("./../endpoints_helpers.js"),
|
|
4
|
+
authorizationHeaders = _require.authorizationHeaders;
|
|
5
|
+
|
|
6
|
+
function scheduleGroupsFactory(_ref) {
|
|
7
|
+
var client = _ref.client,
|
|
8
|
+
internalAuthTokenProvider = _ref.internalAuthTokenProvider;
|
|
9
|
+
|
|
10
|
+
function all(_ref2) {
|
|
11
|
+
var token = _ref2.token,
|
|
12
|
+
jwtToken = _ref2.jwtToken,
|
|
13
|
+
_ref2$query = _ref2.query,
|
|
14
|
+
query = _ref2$query === undefined ? {} : _ref2$query,
|
|
15
|
+
headers = _ref2.headers;
|
|
16
|
+
|
|
17
|
+
return client.get("/schedule-groups", {
|
|
18
|
+
params: query,
|
|
19
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function get(_ref3) {
|
|
24
|
+
var token = _ref3.token,
|
|
25
|
+
jwtToken = _ref3.jwtToken,
|
|
26
|
+
scheduleGroupId = _ref3.scheduleGroupId,
|
|
27
|
+
_ref3$query = _ref3.query,
|
|
28
|
+
query = _ref3$query === undefined ? {} : _ref3$query,
|
|
29
|
+
headers = _ref3.headers;
|
|
30
|
+
|
|
31
|
+
return client.get("/schedule-groups/" + scheduleGroupId, {
|
|
32
|
+
params: query,
|
|
33
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function create(_ref4) {
|
|
38
|
+
var token = _ref4.token,
|
|
39
|
+
jwtToken = _ref4.jwtToken,
|
|
40
|
+
scheduleGroup = _ref4.scheduleGroup,
|
|
41
|
+
headers = _ref4.headers;
|
|
42
|
+
|
|
43
|
+
return client({
|
|
44
|
+
url: "/schedule-groups",
|
|
45
|
+
method: "post",
|
|
46
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
47
|
+
data: { scheduleGroup: scheduleGroup }
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function update(_ref5) {
|
|
52
|
+
var token = _ref5.token,
|
|
53
|
+
jwtToken = _ref5.jwtToken,
|
|
54
|
+
scheduleGroupId = _ref5.scheduleGroupId,
|
|
55
|
+
scheduleGroup = _ref5.scheduleGroup,
|
|
56
|
+
headers = _ref5.headers;
|
|
57
|
+
|
|
58
|
+
return client({
|
|
59
|
+
url: "/schedule-groups/" + scheduleGroupId,
|
|
60
|
+
method: "put",
|
|
61
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
62
|
+
data: { scheduleGroup: scheduleGroup }
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return {
|
|
67
|
+
all: all,
|
|
68
|
+
get: get,
|
|
69
|
+
create: create,
|
|
70
|
+
update: update
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
module.exports = scheduleGroupsFactory;
|
|
@@ -15,7 +15,7 @@ function rmsFactory(_ref) {
|
|
|
15
15
|
query = _ref2$query === undefined ? {} : _ref2$query,
|
|
16
16
|
headers = _ref2.headers;
|
|
17
17
|
|
|
18
|
-
return client.get("/rms/manifest-forecast
|
|
18
|
+
return client.get("/rms/manifest-forecast", {
|
|
19
19
|
params: query,
|
|
20
20
|
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
21
21
|
});
|
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -85,6 +85,7 @@ function createInventory({baseURL, headers, timeout, overrideFn, internalAuthTok
|
|
|
85
85
|
giftCertificateDefinitions: require("./endpoints/inventory/gift-certificate-definitions.js")({client, internalAuthTokenProvider}),
|
|
86
86
|
amenities: require("./endpoints/inventory/amenities.js")({client, internalAuthTokenProvider}),
|
|
87
87
|
amenityGroups: require("./endpoints/inventory/amenity-groups.js")({client, internalAuthTokenProvider}),
|
|
88
|
+
scheduleGroups: require("./endpoints/inventory/schedule-groups.js")({client, internalAuthTokenProvider}),
|
|
88
89
|
bundles: require("./endpoints/inventory/bundles.js")({client, internalAuthTokenProvider}),
|
|
89
90
|
stationGroups: require("./endpoints/inventory/station-groups.js")({client, internalAuthTokenProvider}),
|
|
90
91
|
zonePrices: require("./endpoints/inventory/zone-prices.js")({client, internalAuthTokenProvider}),
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
const {authorizationHeaders} = require("./../endpoints_helpers.js");
|
|
2
|
+
|
|
3
|
+
function scheduleGroupsFactory({client, internalAuthTokenProvider}) {
|
|
4
|
+
function all({token, jwtToken, query = {}, headers}) {
|
|
5
|
+
return client.get("/schedule-groups", {
|
|
6
|
+
params: query,
|
|
7
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers})
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function get({token, jwtToken, scheduleGroupId, query = {}, headers}) {
|
|
12
|
+
return client.get(`/schedule-groups/${scheduleGroupId}`, {
|
|
13
|
+
params: query,
|
|
14
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers})
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function create({token, jwtToken, scheduleGroup, headers}) {
|
|
19
|
+
return client({
|
|
20
|
+
url: "/schedule-groups",
|
|
21
|
+
method: "post",
|
|
22
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
23
|
+
data: {scheduleGroup}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function update({token, jwtToken, scheduleGroupId, scheduleGroup, headers}) {
|
|
28
|
+
return client({
|
|
29
|
+
url: `/schedule-groups/${scheduleGroupId}`,
|
|
30
|
+
method: "put",
|
|
31
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
32
|
+
data: {scheduleGroup}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return {
|
|
37
|
+
all,
|
|
38
|
+
get,
|
|
39
|
+
create,
|
|
40
|
+
update
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
module.exports = scheduleGroupsFactory;
|
|
@@ -12,7 +12,7 @@ function rmsFactory({
|
|
|
12
12
|
query = {},
|
|
13
13
|
headers
|
|
14
14
|
}) {
|
|
15
|
-
return client.get("/rms/manifest-forecast
|
|
15
|
+
return client.get("/rms/manifest-forecast", {
|
|
16
16
|
params: query,
|
|
17
17
|
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers})
|
|
18
18
|
});
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
const {axiosMock, expectRequest} = require("./../../test-helpers.js");
|
|
2
|
+
const api = require("./../../../src/client.js").createApiClient({baseURL: "http://test.com"});
|
|
3
|
+
|
|
4
|
+
describe("inventory/schedule-groups", () => {
|
|
5
|
+
const token = "I owe you a token";
|
|
6
|
+
const jwtToken = "I owe you a JWT token";
|
|
7
|
+
|
|
8
|
+
afterEach(() => {
|
|
9
|
+
axiosMock.reset();
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
it("should list Schedule Groups", () => {
|
|
13
|
+
axiosMock.onGet("/schedule-groups").reply(expectRequest({statusCode: 200, token, jwtToken}));
|
|
14
|
+
return api.inventory.scheduleGroups.all({token, jwtToken});
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
it("should get a Schedule Group", () => {
|
|
19
|
+
const scheduleGroupId = "5ad7804216b426412c19f06f";
|
|
20
|
+
axiosMock.onGet(`/schedule-groups/${scheduleGroupId}`).reply(expectRequest({statusCode: 200, token, jwtToken}));
|
|
21
|
+
return api.inventory.scheduleGroups.get({
|
|
22
|
+
token,
|
|
23
|
+
jwtToken,
|
|
24
|
+
scheduleGroupId
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
it("should create an Schedule Group", () => {
|
|
29
|
+
axiosMock.onPost("/schedule-groups").reply(expectRequest({statusCode: 200, token, jwtToken}));
|
|
30
|
+
return api.inventory.scheduleGroups.create({
|
|
31
|
+
jwtToken,
|
|
32
|
+
token,
|
|
33
|
+
scheduleGroup: {
|
|
34
|
+
name: "schedule group name",
|
|
35
|
+
colour: "#1414b8",
|
|
36
|
+
enabled: "true",
|
|
37
|
+
rule: {}
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
it("should update an Schedule Group", () => {
|
|
43
|
+
const scheduleGroupId = "5ad7804216b426412c19f06f";
|
|
44
|
+
axiosMock.onPut(`/schedule-groups/${scheduleGroupId}`).reply(expectRequest({statusCode: 200, token, jwtToken}));
|
|
45
|
+
return api.inventory.scheduleGroups.update({
|
|
46
|
+
jwtToken,
|
|
47
|
+
token,
|
|
48
|
+
scheduleGroupId,
|
|
49
|
+
update: {
|
|
50
|
+
name: "updated schedule group name",
|
|
51
|
+
colour: "#1515b8",
|
|
52
|
+
enabled: "true",
|
|
53
|
+
rule: {}
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
});
|
|
@@ -12,7 +12,7 @@ describe("operations/accounting-items", () => {
|
|
|
12
12
|
});
|
|
13
13
|
|
|
14
14
|
it("should get all manifest forecast information in a single day", () => {
|
|
15
|
-
axiosMock.onGet("/rms/manifest-forecast
|
|
15
|
+
axiosMock.onGet("/rms/manifest-forecast").reply(expectRequest({
|
|
16
16
|
statusCode: 200, token, jwtToken
|
|
17
17
|
}));
|
|
18
18
|
return api.operations.rms.manifestForecasts.all({
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
const {expect} = require("chai");
|
|
2
|
+
const port = process.env.INVENTORY_API_PORT;
|
|
3
|
+
const token = process.env.API_TOKEN;
|
|
4
|
+
const jwtToken = process.env.JWT_TOKEN;
|
|
5
|
+
const scheduleGroupId = process.env.SCHEDULE_GROUP_ID;
|
|
6
|
+
|
|
7
|
+
const api = require("./../../../src/client.js").createApiClient({
|
|
8
|
+
baseURL: `http://localhost:${port}`,
|
|
9
|
+
baseURLOverride: {
|
|
10
|
+
inventory: (baseUrl) => `${baseUrl}/inventory`
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
describe("inventory/schedule-groups", () => {
|
|
15
|
+
it("should get an Schedule Group", () => {
|
|
16
|
+
return api.inventory.scheduleGroups.get({
|
|
17
|
+
token,
|
|
18
|
+
jwtToken,
|
|
19
|
+
scheduleGroupId
|
|
20
|
+
})
|
|
21
|
+
.then(({status, data}) => {
|
|
22
|
+
expect(status).to.equal(200);
|
|
23
|
+
expect(data.scheduleGroup).to.exist;
|
|
24
|
+
expect(data.scheduleGroup._id).to.eql(scheduleGroupId);
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
it("should create an Schedule Group", () => {
|
|
29
|
+
const newName = "New Name 97";
|
|
30
|
+
const newColour = "#000017";
|
|
31
|
+
const newState = false;
|
|
32
|
+
return api.inventory.scheduleGroups.create({
|
|
33
|
+
jwtToken,
|
|
34
|
+
token,
|
|
35
|
+
scheduleGroup: {
|
|
36
|
+
name: newName,
|
|
37
|
+
enabled: newState,
|
|
38
|
+
colour: newColour,
|
|
39
|
+
rule: {}
|
|
40
|
+
}
|
|
41
|
+
})
|
|
42
|
+
.then(({status, data}) => {
|
|
43
|
+
expect(status).to.equal(200);
|
|
44
|
+
expect(data.scheduleGroup).to.exist;
|
|
45
|
+
expect(data.scheduleGroup.name).to.eql(newName);
|
|
46
|
+
expect(data.scheduleGroup.enabled).to.eql(newState);
|
|
47
|
+
expect(data.scheduleGroup.colour).to.eql(newColour);
|
|
48
|
+
expect(data.amenityGroup.createdAt).to.exist;
|
|
49
|
+
expect(data.amenityGroup.createdBy).to.exist;
|
|
50
|
+
expect(data.amenityGroup.updatedAt).to.exist;
|
|
51
|
+
expect(data.amenityGroup.updatedBy).to.exist;
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
it("should update an Schedule Group", () => {
|
|
56
|
+
const newName = "Schedule Group New Name";
|
|
57
|
+
const newState = false;
|
|
58
|
+
const newColour = "#000044";
|
|
59
|
+
|
|
60
|
+
return api.inventory.scheduleGroups.update({
|
|
61
|
+
jwtToken,
|
|
62
|
+
token,
|
|
63
|
+
scheduleGroupId,
|
|
64
|
+
amenityGroup: {
|
|
65
|
+
name: newName,
|
|
66
|
+
colour: newColour,
|
|
67
|
+
enabled: newState,
|
|
68
|
+
amenityIds: [],
|
|
69
|
+
lexiconKeys: {}
|
|
70
|
+
}
|
|
71
|
+
})
|
|
72
|
+
.then(({status, data}) => {
|
|
73
|
+
expect(status).to.equal(200);
|
|
74
|
+
expect(data.amenityGroup).to.exist;
|
|
75
|
+
expect(data.amenityGroup.name).to.eql(newName);
|
|
76
|
+
expect(data.amenityGroup.enabled).to.eql(newState);
|
|
77
|
+
expect(data.amenityGroup.colour).to.eql(newColour);
|
|
78
|
+
expect(data.amenityGroup.createdAt).to.exist;
|
|
79
|
+
expect(data.amenityGroup.createdBy).to.exist;
|
|
80
|
+
expect(data.amenityGroup.updatedAt).to.exist;
|
|
81
|
+
expect(data.amenityGroup.updatedBy).to.exist;
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
});
|
package/types/client.d.ts
CHANGED
|
@@ -1224,6 +1224,34 @@ export function createApiClient(options: {
|
|
|
1224
1224
|
headers: any;
|
|
1225
1225
|
}) => any;
|
|
1226
1226
|
};
|
|
1227
|
+
scheduleGroups: {
|
|
1228
|
+
all: ({ token, jwtToken, query, headers }: {
|
|
1229
|
+
token: any;
|
|
1230
|
+
jwtToken: any;
|
|
1231
|
+
query?: {};
|
|
1232
|
+
headers: any;
|
|
1233
|
+
}) => any;
|
|
1234
|
+
get: ({ token, jwtToken, scheduleGroupId, query, headers }: {
|
|
1235
|
+
token: any;
|
|
1236
|
+
jwtToken: any;
|
|
1237
|
+
scheduleGroupId: any;
|
|
1238
|
+
query?: {};
|
|
1239
|
+
headers: any;
|
|
1240
|
+
}) => any;
|
|
1241
|
+
create: ({ token, jwtToken, scheduleGroup, headers }: {
|
|
1242
|
+
token: any;
|
|
1243
|
+
jwtToken: any;
|
|
1244
|
+
scheduleGroup: any;
|
|
1245
|
+
headers: any;
|
|
1246
|
+
}) => any;
|
|
1247
|
+
update: ({ token, jwtToken, scheduleGroupId, scheduleGroup, headers }: {
|
|
1248
|
+
token: any;
|
|
1249
|
+
jwtToken: any;
|
|
1250
|
+
scheduleGroupId: any;
|
|
1251
|
+
scheduleGroup: any;
|
|
1252
|
+
headers: any;
|
|
1253
|
+
}) => any;
|
|
1254
|
+
};
|
|
1227
1255
|
bundles: {
|
|
1228
1256
|
all: ({ token, jwtToken, query, headers }: {
|
|
1229
1257
|
token: any;
|
|
@@ -1798,7 +1826,12 @@ export function createApiClient(options: {
|
|
|
1798
1826
|
};
|
|
1799
1827
|
dynamicForms: {
|
|
1800
1828
|
fields: {
|
|
1801
|
-
get({ token, jwtToken, dynamicFormFieldId, headers }?: {
|
|
1829
|
+
get({ token, jwtToken, dynamicFormFieldId, headers }?: {
|
|
1830
|
+
token: any;
|
|
1831
|
+
jwtToken: any;
|
|
1832
|
+
dynamicFormFieldId: any;
|
|
1833
|
+
headers: any;
|
|
1834
|
+
}): any;
|
|
1802
1835
|
all({ token, jwtToken, query, headers }: {
|
|
1803
1836
|
token: any;
|
|
1804
1837
|
jwtToken: any;
|
|
@@ -2500,7 +2533,12 @@ export function createApiClient(options: {
|
|
|
2500
2533
|
}) => any;
|
|
2501
2534
|
};
|
|
2502
2535
|
users: {
|
|
2503
|
-
get: ({ token, jwtToken, id, headers }?: {
|
|
2536
|
+
get: ({ token, jwtToken, id, headers }?: {
|
|
2537
|
+
token: any;
|
|
2538
|
+
jwtToken: any;
|
|
2539
|
+
id: any;
|
|
2540
|
+
headers: any;
|
|
2541
|
+
}) => any;
|
|
2504
2542
|
all: ({ token, jwtToken, query, headers }: {
|
|
2505
2543
|
token: any;
|
|
2506
2544
|
jwtToken: any;
|
|
@@ -2800,7 +2838,7 @@ export function createApiClient(options: {
|
|
|
2800
2838
|
create: ({ token, jwtToken, cancelData, headers }: {
|
|
2801
2839
|
token: string;
|
|
2802
2840
|
jwtToken: string;
|
|
2803
|
-
cancelData: CancelSetData;
|
|
2841
|
+
cancelData: import("./endpoints/sales/cancellations.js").CancelSetData;
|
|
2804
2842
|
headers: any;
|
|
2805
2843
|
}) => Promise<any>;
|
|
2806
2844
|
};
|
|
@@ -3629,7 +3667,7 @@ export function createApiClient(options: {
|
|
|
3629
3667
|
jwtToken: any;
|
|
3630
3668
|
phoneNumberData?: {};
|
|
3631
3669
|
headers: any;
|
|
3632
|
-
}): any;
|
|
3670
|
+
}): any; /** @type {import("axios").AxiosRequestConfig} */
|
|
3633
3671
|
};
|
|
3634
3672
|
sms: {
|
|
3635
3673
|
create({ token, jwtToken, smsMsg, headers }: {
|
|
@@ -4,7 +4,12 @@ declare function dynamicFormsFactory({ client, internalAuthTokenProvider }: {
|
|
|
4
4
|
internalAuthTokenProvider: any;
|
|
5
5
|
}): {
|
|
6
6
|
fields: {
|
|
7
|
-
get({ token, jwtToken, dynamicFormFieldId, headers }?: {
|
|
7
|
+
get({ token, jwtToken, dynamicFormFieldId, headers }?: {
|
|
8
|
+
token: any;
|
|
9
|
+
jwtToken: any;
|
|
10
|
+
dynamicFormFieldId: any;
|
|
11
|
+
headers: any;
|
|
12
|
+
}): any;
|
|
8
13
|
all({ token, jwtToken, query, headers }: {
|
|
9
14
|
token: any;
|
|
10
15
|
jwtToken: any;
|
|
@@ -3,7 +3,12 @@ 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 }?: {
|
|
7
|
+
token: any;
|
|
8
|
+
jwtToken: any;
|
|
9
|
+
id: any;
|
|
10
|
+
headers: any;
|
|
11
|
+
}) => any;
|
|
7
12
|
all: ({ token, jwtToken, query, headers }: {
|
|
8
13
|
token: any;
|
|
9
14
|
jwtToken: any;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export = scheduleGroupsFactory;
|
|
2
|
+
declare function scheduleGroupsFactory({ client, internalAuthTokenProvider }: {
|
|
3
|
+
client: any;
|
|
4
|
+
internalAuthTokenProvider: any;
|
|
5
|
+
}): {
|
|
6
|
+
all: ({ token, jwtToken, query, headers }: {
|
|
7
|
+
token: any;
|
|
8
|
+
jwtToken: any;
|
|
9
|
+
query?: {};
|
|
10
|
+
headers: any;
|
|
11
|
+
}) => any;
|
|
12
|
+
get: ({ token, jwtToken, scheduleGroupId, query, headers }: {
|
|
13
|
+
token: any;
|
|
14
|
+
jwtToken: any;
|
|
15
|
+
scheduleGroupId: any;
|
|
16
|
+
query?: {};
|
|
17
|
+
headers: any;
|
|
18
|
+
}) => any;
|
|
19
|
+
create: ({ token, jwtToken, scheduleGroup, headers }: {
|
|
20
|
+
token: any;
|
|
21
|
+
jwtToken: any;
|
|
22
|
+
scheduleGroup: any;
|
|
23
|
+
headers: any;
|
|
24
|
+
}) => any;
|
|
25
|
+
update: ({ token, jwtToken, scheduleGroupId, scheduleGroup, headers }: {
|
|
26
|
+
token: any;
|
|
27
|
+
jwtToken: any;
|
|
28
|
+
scheduleGroupId: any;
|
|
29
|
+
scheduleGroup: any;
|
|
30
|
+
headers: any;
|
|
31
|
+
}) => any;
|
|
32
|
+
};
|
|
@@ -1178,6 +1178,34 @@ declare const _exports: {
|
|
|
1178
1178
|
headers: any;
|
|
1179
1179
|
}) => any;
|
|
1180
1180
|
};
|
|
1181
|
+
scheduleGroups: {
|
|
1182
|
+
all: ({ token, jwtToken, query, headers }: {
|
|
1183
|
+
token: any;
|
|
1184
|
+
jwtToken: any;
|
|
1185
|
+
query?: {};
|
|
1186
|
+
headers: any;
|
|
1187
|
+
}) => any;
|
|
1188
|
+
get: ({ token, jwtToken, scheduleGroupId, query, headers }: {
|
|
1189
|
+
token: any;
|
|
1190
|
+
jwtToken: any;
|
|
1191
|
+
scheduleGroupId: any;
|
|
1192
|
+
query?: {};
|
|
1193
|
+
headers: any;
|
|
1194
|
+
}) => any;
|
|
1195
|
+
create: ({ token, jwtToken, scheduleGroup, headers }: {
|
|
1196
|
+
token: any;
|
|
1197
|
+
jwtToken: any;
|
|
1198
|
+
scheduleGroup: any;
|
|
1199
|
+
headers: any;
|
|
1200
|
+
}) => any;
|
|
1201
|
+
update: ({ token, jwtToken, scheduleGroupId, scheduleGroup, headers }: {
|
|
1202
|
+
token: any;
|
|
1203
|
+
jwtToken: any;
|
|
1204
|
+
scheduleGroupId: any;
|
|
1205
|
+
scheduleGroup: any;
|
|
1206
|
+
headers: any;
|
|
1207
|
+
}) => any;
|
|
1208
|
+
};
|
|
1181
1209
|
bundles: {
|
|
1182
1210
|
all: ({ token, jwtToken, query, headers }: {
|
|
1183
1211
|
token: any;
|
|
@@ -1752,7 +1780,12 @@ declare const _exports: {
|
|
|
1752
1780
|
};
|
|
1753
1781
|
dynamicForms: {
|
|
1754
1782
|
fields: {
|
|
1755
|
-
get({ token, jwtToken, dynamicFormFieldId, headers }?: {
|
|
1783
|
+
get({ token, jwtToken, dynamicFormFieldId, headers }?: {
|
|
1784
|
+
token: any;
|
|
1785
|
+
jwtToken: any;
|
|
1786
|
+
dynamicFormFieldId: any;
|
|
1787
|
+
headers: any;
|
|
1788
|
+
}): any;
|
|
1756
1789
|
all({ token, jwtToken, query, headers }: {
|
|
1757
1790
|
token: any;
|
|
1758
1791
|
jwtToken: any;
|
|
@@ -2454,7 +2487,12 @@ declare const _exports: {
|
|
|
2454
2487
|
}) => any;
|
|
2455
2488
|
};
|
|
2456
2489
|
users: {
|
|
2457
|
-
get: ({ token, jwtToken, id, headers }?: {
|
|
2490
|
+
get: ({ token, jwtToken, id, headers }?: {
|
|
2491
|
+
token: any;
|
|
2492
|
+
jwtToken: any;
|
|
2493
|
+
id: any;
|
|
2494
|
+
headers: any;
|
|
2495
|
+
}) => any;
|
|
2458
2496
|
all: ({ token, jwtToken, query, headers }: {
|
|
2459
2497
|
token: any;
|
|
2460
2498
|
jwtToken: any;
|
|
@@ -2754,7 +2792,7 @@ declare const _exports: {
|
|
|
2754
2792
|
create: ({ token, jwtToken, cancelData, headers }: {
|
|
2755
2793
|
token: string;
|
|
2756
2794
|
jwtToken: string;
|
|
2757
|
-
cancelData: CancelSetData;
|
|
2795
|
+
cancelData: import("./endpoints/sales/cancellations.js").CancelSetData;
|
|
2758
2796
|
headers: any;
|
|
2759
2797
|
}) => Promise<any>;
|
|
2760
2798
|
};
|