@compassdigital/sdk.typescript 3.4.0 → 3.6.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/index.d.ts +176 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +207 -3
- package/lib/index.js.map +1 -1
- package/lib/interface/compassconnect.d.ts +36 -0
- package/lib/interface/compassconnect.d.ts.map +1 -0
- package/lib/interface/compassconnect.js +4 -0
- package/lib/interface/compassconnect.js.map +1 -0
- package/lib/interface/kds.d.ts +5 -7
- package/lib/interface/kds.d.ts.map +1 -1
- package/lib/interface/permission.d.ts +137 -0
- package/lib/interface/permission.d.ts.map +1 -0
- package/lib/interface/permission.js +4 -0
- package/lib/interface/permission.js.map +1 -0
- package/lib/interface/sms.d.ts +1 -0
- package/lib/interface/sms.d.ts.map +1 -0
- package/lib/interface/sms.js +3 -0
- package/lib/interface/sms.js.map +1 -0
- package/lib/interface/vendor.d.ts +150 -0
- package/lib/interface/vendor.d.ts.map +1 -0
- package/lib/interface/vendor.js +4 -0
- package/lib/interface/vendor.js.map +1 -0
- package/manifest.json +20 -4
- package/package.json +1 -1
- package/src/index.ts +440 -8
- package/src/interface/compassconnect.ts +50 -0
- package/src/interface/kds.ts +6 -8
- package/src/interface/permission.ts +233 -0
- package/src/interface/sms.ts +1 -0
- package/src/interface/vendor.ts +244 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendor.d.ts","sourceRoot":"","sources":["../../src/interface/vendor.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,KAAK;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,MAAM;IAErB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IAC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AAElD,MAAM,WAAW,0BACf,SAAQ,wBAAwB,EAC9B,uBAAuB;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendor.js","sourceRoot":"","sources":["../../src/interface/vendor.ts"],"names":[],"mappings":";AAAA,sDAAsD"}
|
package/manifest.json
CHANGED
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
"name": "task",
|
|
29
|
-
"swagger": "
|
|
29
|
+
"swagger": "../../compassdigital.service.task/swagger.json"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
"name": "kds",
|
|
33
|
-
"swagger": "
|
|
33
|
+
"swagger": "../../compassdigital.service.kds/swagger.json"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
"name": "mealplan",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"name": "calendar",
|
|
77
|
-
"swagger": "
|
|
77
|
+
"swagger": "../../compassdigital.service.calendar/swagger.json"
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
"name": "delivery",
|
|
@@ -107,6 +107,22 @@
|
|
|
107
107
|
{
|
|
108
108
|
"name": "notification",
|
|
109
109
|
"swagger": "https://api.compassdigital.org/dev/notification/swagger.json"
|
|
110
|
-
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "compassconnect",
|
|
113
|
+
"swagger": "../../compassdigital.service.compassconnect/swagger.json"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "vendor",
|
|
117
|
+
"swagger": "../../compassdigital.service.vendor/swagger.json"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "sms",
|
|
121
|
+
"swagger": "../../compassdigital.service.sms/swagger.json"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "permission",
|
|
125
|
+
"swagger": "../../compassdigital.service.permission/swagger.json"
|
|
126
|
+
}
|
|
111
127
|
]
|
|
112
128
|
}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -226,8 +226,8 @@ import {
|
|
|
226
226
|
PostKdsDeviceAuthBody,
|
|
227
227
|
PostKdsDeviceAuthResponse,
|
|
228
228
|
DeleteKdsDeviceAuthResponse,
|
|
229
|
-
|
|
230
|
-
|
|
229
|
+
PatchKdsDeviceInfoBody,
|
|
230
|
+
PatchKdsDeviceInfoResponse,
|
|
231
231
|
GetKdsSwaggerResponse,
|
|
232
232
|
} from "./interface/kds";
|
|
233
233
|
|
|
@@ -557,6 +557,52 @@ import {
|
|
|
557
557
|
GetNotificationSwaggerResponse,
|
|
558
558
|
} from "./interface/notification";
|
|
559
559
|
|
|
560
|
+
import {
|
|
561
|
+
GetCompassconnectOmsTokenQuery,
|
|
562
|
+
GetCompassconnectOmsTokenResponse,
|
|
563
|
+
} from "./interface/compassconnect";
|
|
564
|
+
|
|
565
|
+
import {
|
|
566
|
+
PostVendorBody,
|
|
567
|
+
PostVendorResponse,
|
|
568
|
+
GetVendorsResponse,
|
|
569
|
+
GetVendorResponse,
|
|
570
|
+
PatchVendorBody,
|
|
571
|
+
PatchVendorResponse,
|
|
572
|
+
GetVendorAuthResponse,
|
|
573
|
+
PostVendorAuthBody,
|
|
574
|
+
PostVendorAuthResponse,
|
|
575
|
+
GetVendorKeysResponse,
|
|
576
|
+
PostVendorKeyBody,
|
|
577
|
+
PostVendorKeyResponse,
|
|
578
|
+
GetVendorKeyQuery,
|
|
579
|
+
GetVendorKeyResponse,
|
|
580
|
+
PatchVendorKeyBody,
|
|
581
|
+
PatchVendorKeyResponse,
|
|
582
|
+
DeleteVendorKeyResponse,
|
|
583
|
+
PostVendorKeyRotateQuery,
|
|
584
|
+
PostVendorKeyRotateResponse,
|
|
585
|
+
} from "./interface/vendor";
|
|
586
|
+
|
|
587
|
+
import {
|
|
588
|
+
PostPermissionBody,
|
|
589
|
+
PostPermissionResponse,
|
|
590
|
+
DeletePermissionResponse,
|
|
591
|
+
GetPermissionRoleQuery,
|
|
592
|
+
GetPermissionRoleResponse,
|
|
593
|
+
PostPermissionRoleBody,
|
|
594
|
+
PostPermissionRoleResponse,
|
|
595
|
+
PatchPermissionRoleBody,
|
|
596
|
+
PatchPermissionRoleResponse,
|
|
597
|
+
GetPermissionRecipientQuery,
|
|
598
|
+
GetPermissionRecipientResponse,
|
|
599
|
+
GetPermissionRoleUserResponse,
|
|
600
|
+
PostPermissionRoleUserBody,
|
|
601
|
+
PostPermissionRoleUserResponse,
|
|
602
|
+
DeletePermissionRoleUserBody,
|
|
603
|
+
DeletePermissionRoleUserResponse,
|
|
604
|
+
} from "./interface/permission";
|
|
605
|
+
|
|
560
606
|
import { BaseServiceClient, RequestOptions, ResponsePromise } from "./base";
|
|
561
607
|
export * from "./base";
|
|
562
608
|
|
|
@@ -2768,21 +2814,21 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2768
2814
|
}
|
|
2769
2815
|
|
|
2770
2816
|
/**
|
|
2771
|
-
*
|
|
2817
|
+
* PATCH /kds/device/info/{device_id} - Update additional information related to the kds
|
|
2772
2818
|
*
|
|
2773
2819
|
* @param device_id - serial number encoded as cdl id
|
|
2774
2820
|
* @param body
|
|
2775
2821
|
* @param options - additional request options
|
|
2776
2822
|
*/
|
|
2777
|
-
|
|
2823
|
+
patch_kds_device_info(
|
|
2778
2824
|
device_id: string,
|
|
2779
|
-
body:
|
|
2825
|
+
body: PatchKdsDeviceInfoBody,
|
|
2780
2826
|
options?: RequestOptions
|
|
2781
|
-
): ResponsePromise<
|
|
2827
|
+
): ResponsePromise<PatchKdsDeviceInfoResponse> {
|
|
2782
2828
|
return this.request(
|
|
2783
2829
|
"kds",
|
|
2784
|
-
"
|
|
2785
|
-
"
|
|
2830
|
+
"patch_kds_device_info",
|
|
2831
|
+
"patch",
|
|
2786
2832
|
`/kds/device/info/${device_id}`,
|
|
2787
2833
|
body,
|
|
2788
2834
|
options
|
|
@@ -5705,4 +5751,390 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
5705
5751
|
options
|
|
5706
5752
|
);
|
|
5707
5753
|
}
|
|
5754
|
+
|
|
5755
|
+
/**
|
|
5756
|
+
* GET /compassconnect/get_oms_token - Gets an OMS token
|
|
5757
|
+
*
|
|
5758
|
+
* @param options - additional request options
|
|
5759
|
+
*/
|
|
5760
|
+
get_compassconnect_oms_token(
|
|
5761
|
+
options: {
|
|
5762
|
+
query: GetCompassconnectOmsTokenQuery;
|
|
5763
|
+
} & RequestOptions
|
|
5764
|
+
): ResponsePromise<GetCompassconnectOmsTokenResponse> {
|
|
5765
|
+
return this.request(
|
|
5766
|
+
"compassconnect",
|
|
5767
|
+
"get_compassconnect_oms_token",
|
|
5768
|
+
"get",
|
|
5769
|
+
`/compassconnect/get_oms_token`,
|
|
5770
|
+
null,
|
|
5771
|
+
options
|
|
5772
|
+
);
|
|
5773
|
+
}
|
|
5774
|
+
|
|
5775
|
+
/**
|
|
5776
|
+
* POST /vendor - Create new vendor
|
|
5777
|
+
*
|
|
5778
|
+
* @param body
|
|
5779
|
+
* @param options - additional request options
|
|
5780
|
+
*/
|
|
5781
|
+
post_vendor(body: PostVendorBody, options?: RequestOptions): ResponsePromise<PostVendorResponse> {
|
|
5782
|
+
return this.request("vendor", "post_vendor", "post", `/vendor`, body, options);
|
|
5783
|
+
}
|
|
5784
|
+
|
|
5785
|
+
/**
|
|
5786
|
+
* GET /vendor - Get all Vendors
|
|
5787
|
+
*
|
|
5788
|
+
* @param options - additional request options
|
|
5789
|
+
*/
|
|
5790
|
+
get_vendors(options?: RequestOptions): ResponsePromise<GetVendorsResponse> {
|
|
5791
|
+
return this.request("vendor", "get_vendors", "get", `/vendor`, null, options);
|
|
5792
|
+
}
|
|
5793
|
+
|
|
5794
|
+
/**
|
|
5795
|
+
* GET /vendor/{id} - Get info about the Vendor
|
|
5796
|
+
*
|
|
5797
|
+
* @param id - vendor
|
|
5798
|
+
* @param options - additional request options
|
|
5799
|
+
*/
|
|
5800
|
+
get_vendor(id: string, options?: RequestOptions): ResponsePromise<GetVendorResponse> {
|
|
5801
|
+
return this.request("vendor", "get_vendor", "get", `/vendor/${id}`, null, options);
|
|
5802
|
+
}
|
|
5803
|
+
|
|
5804
|
+
/**
|
|
5805
|
+
* PATCH /vendor/{id} - Update info about the Vendor
|
|
5806
|
+
*
|
|
5807
|
+
* @param id - vendor
|
|
5808
|
+
* @param body
|
|
5809
|
+
* @param options - additional request options
|
|
5810
|
+
*/
|
|
5811
|
+
patch_vendor(
|
|
5812
|
+
id: string,
|
|
5813
|
+
body: PatchVendorBody,
|
|
5814
|
+
options?: RequestOptions
|
|
5815
|
+
): ResponsePromise<PatchVendorResponse> {
|
|
5816
|
+
return this.request("vendor", "patch_vendor", "patch", `/vendor/${id}`, body, options);
|
|
5817
|
+
}
|
|
5818
|
+
|
|
5819
|
+
/**
|
|
5820
|
+
* GET /vendor/auth - Get access/refresh tokens for accessing our APIs
|
|
5821
|
+
*
|
|
5822
|
+
* @param options - additional request options
|
|
5823
|
+
*/
|
|
5824
|
+
get_vendor_auth(options?: RequestOptions): ResponsePromise<GetVendorAuthResponse> {
|
|
5825
|
+
return this.request("vendor", "get_vendor_auth", "get", `/vendor/auth`, null, options);
|
|
5826
|
+
}
|
|
5827
|
+
|
|
5828
|
+
/**
|
|
5829
|
+
* POST /vendor/auth - Get new access token using refresh token and previous token
|
|
5830
|
+
*
|
|
5831
|
+
* @param body
|
|
5832
|
+
* @param options - additional request options
|
|
5833
|
+
*/
|
|
5834
|
+
post_vendor_auth(
|
|
5835
|
+
body: PostVendorAuthBody,
|
|
5836
|
+
options?: RequestOptions
|
|
5837
|
+
): ResponsePromise<PostVendorAuthResponse> {
|
|
5838
|
+
return this.request("vendor", "post_vendor_auth", "post", `/vendor/auth`, body, options);
|
|
5839
|
+
}
|
|
5840
|
+
|
|
5841
|
+
/**
|
|
5842
|
+
* GET /vendor/{id}/key - Get list of Vendor keys
|
|
5843
|
+
*
|
|
5844
|
+
* @param id - vendor
|
|
5845
|
+
* @param options - additional request options
|
|
5846
|
+
*/
|
|
5847
|
+
get_vendor_keys(id: string, options?: RequestOptions): ResponsePromise<GetVendorKeysResponse> {
|
|
5848
|
+
return this.request("vendor", "get_vendor_keys", "get", `/vendor/${id}/key`, null, options);
|
|
5849
|
+
}
|
|
5850
|
+
|
|
5851
|
+
/**
|
|
5852
|
+
* POST /vendor/{id}/key - Create new key for the vendor
|
|
5853
|
+
*
|
|
5854
|
+
* @param id - vendor
|
|
5855
|
+
* @param body
|
|
5856
|
+
* @param options - additional request options
|
|
5857
|
+
*/
|
|
5858
|
+
post_vendor_key(
|
|
5859
|
+
id: string,
|
|
5860
|
+
body: PostVendorKeyBody,
|
|
5861
|
+
options?: RequestOptions
|
|
5862
|
+
): ResponsePromise<PostVendorKeyResponse> {
|
|
5863
|
+
return this.request("vendor", "post_vendor_key", "post", `/vendor/${id}/key`, body, options);
|
|
5864
|
+
}
|
|
5865
|
+
|
|
5866
|
+
/**
|
|
5867
|
+
* GET /vendor/{id}/key/{key} - Get info about vendor key
|
|
5868
|
+
*
|
|
5869
|
+
* @param id - vendor
|
|
5870
|
+
* @param key - key
|
|
5871
|
+
* @param options - additional request options
|
|
5872
|
+
*/
|
|
5873
|
+
get_vendor_key(
|
|
5874
|
+
id: string,
|
|
5875
|
+
key: string,
|
|
5876
|
+
options?: {
|
|
5877
|
+
query?: GetVendorKeyQuery;
|
|
5878
|
+
} & RequestOptions
|
|
5879
|
+
): ResponsePromise<GetVendorKeyResponse> {
|
|
5880
|
+
return this.request(
|
|
5881
|
+
"vendor",
|
|
5882
|
+
"get_vendor_key",
|
|
5883
|
+
"get",
|
|
5884
|
+
`/vendor/${id}/key/${key}`,
|
|
5885
|
+
null,
|
|
5886
|
+
options
|
|
5887
|
+
);
|
|
5888
|
+
}
|
|
5889
|
+
|
|
5890
|
+
/**
|
|
5891
|
+
* PATCH /vendor/{id}/key/{key} - Update info for vendor key
|
|
5892
|
+
*
|
|
5893
|
+
* @param id - vendor
|
|
5894
|
+
* @param key - key
|
|
5895
|
+
* @param body
|
|
5896
|
+
* @param options - additional request options
|
|
5897
|
+
*/
|
|
5898
|
+
patch_vendor_key(
|
|
5899
|
+
id: string,
|
|
5900
|
+
key: string,
|
|
5901
|
+
body: PatchVendorKeyBody,
|
|
5902
|
+
options?: RequestOptions
|
|
5903
|
+
): ResponsePromise<PatchVendorKeyResponse> {
|
|
5904
|
+
return this.request(
|
|
5905
|
+
"vendor",
|
|
5906
|
+
"patch_vendor_key",
|
|
5907
|
+
"patch",
|
|
5908
|
+
`/vendor/${id}/key/${key}`,
|
|
5909
|
+
body,
|
|
5910
|
+
options
|
|
5911
|
+
);
|
|
5912
|
+
}
|
|
5913
|
+
|
|
5914
|
+
/**
|
|
5915
|
+
* DELETE /vendor/{id}/key/{key} - Mark key as expired
|
|
5916
|
+
*
|
|
5917
|
+
* @param id - vendor
|
|
5918
|
+
* @param key - key
|
|
5919
|
+
* @param options - additional request options
|
|
5920
|
+
*/
|
|
5921
|
+
delete_vendor_key(
|
|
5922
|
+
id: string,
|
|
5923
|
+
key: string,
|
|
5924
|
+
options?: RequestOptions
|
|
5925
|
+
): ResponsePromise<DeleteVendorKeyResponse> {
|
|
5926
|
+
return this.request(
|
|
5927
|
+
"vendor",
|
|
5928
|
+
"delete_vendor_key",
|
|
5929
|
+
"delete",
|
|
5930
|
+
`/vendor/${id}/key/${key}`,
|
|
5931
|
+
null,
|
|
5932
|
+
options
|
|
5933
|
+
);
|
|
5934
|
+
}
|
|
5935
|
+
|
|
5936
|
+
/**
|
|
5937
|
+
* POST /vendor/{id}/key/{key}/rotate - Rotate vendor key
|
|
5938
|
+
*
|
|
5939
|
+
* @param id - vendor
|
|
5940
|
+
* @param key - key
|
|
5941
|
+
* @param options - additional request options
|
|
5942
|
+
*/
|
|
5943
|
+
post_vendor_key_rotate(
|
|
5944
|
+
id: string,
|
|
5945
|
+
key: string,
|
|
5946
|
+
options?: {
|
|
5947
|
+
query?: PostVendorKeyRotateQuery;
|
|
5948
|
+
} & RequestOptions
|
|
5949
|
+
): ResponsePromise<PostVendorKeyRotateResponse> {
|
|
5950
|
+
return this.request(
|
|
5951
|
+
"vendor",
|
|
5952
|
+
"post_vendor_key_rotate",
|
|
5953
|
+
"post",
|
|
5954
|
+
`/vendor/${id}/key/${key}/rotate`,
|
|
5955
|
+
null,
|
|
5956
|
+
options
|
|
5957
|
+
);
|
|
5958
|
+
}
|
|
5959
|
+
|
|
5960
|
+
/**
|
|
5961
|
+
* POST /permission - Creates a new permission for a role or a user
|
|
5962
|
+
*
|
|
5963
|
+
* @param body
|
|
5964
|
+
* @param options - additional request options
|
|
5965
|
+
*/
|
|
5966
|
+
post_permission(
|
|
5967
|
+
body: PostPermissionBody,
|
|
5968
|
+
options?: RequestOptions
|
|
5969
|
+
): ResponsePromise<PostPermissionResponse> {
|
|
5970
|
+
return this.request("permission", "post_permission", "post", `/permission`, body, options);
|
|
5971
|
+
}
|
|
5972
|
+
|
|
5973
|
+
/**
|
|
5974
|
+
* DELETE /permission/{id} - Delete a permission from a role or a user
|
|
5975
|
+
*
|
|
5976
|
+
* @param id - permission
|
|
5977
|
+
* @param options - additional request options
|
|
5978
|
+
*/
|
|
5979
|
+
delete_permission(
|
|
5980
|
+
id: string,
|
|
5981
|
+
options?: RequestOptions
|
|
5982
|
+
): ResponsePromise<DeletePermissionResponse> {
|
|
5983
|
+
return this.request(
|
|
5984
|
+
"permission",
|
|
5985
|
+
"delete_permission",
|
|
5986
|
+
"delete",
|
|
5987
|
+
`/permission/${id}`,
|
|
5988
|
+
null,
|
|
5989
|
+
options
|
|
5990
|
+
);
|
|
5991
|
+
}
|
|
5992
|
+
|
|
5993
|
+
/**
|
|
5994
|
+
* GET /permission/role - Get Roles, with pagination and filters
|
|
5995
|
+
*
|
|
5996
|
+
* @param options - additional request options
|
|
5997
|
+
*/
|
|
5998
|
+
get_permission_role(
|
|
5999
|
+
options: {
|
|
6000
|
+
query: GetPermissionRoleQuery;
|
|
6001
|
+
} & RequestOptions
|
|
6002
|
+
): ResponsePromise<GetPermissionRoleResponse> {
|
|
6003
|
+
return this.request(
|
|
6004
|
+
"permission",
|
|
6005
|
+
"get_permission_role",
|
|
6006
|
+
"get",
|
|
6007
|
+
`/permission/role`,
|
|
6008
|
+
null,
|
|
6009
|
+
options
|
|
6010
|
+
);
|
|
6011
|
+
}
|
|
6012
|
+
|
|
6013
|
+
/**
|
|
6014
|
+
* POST /permission/role - Create a new role
|
|
6015
|
+
*
|
|
6016
|
+
* @param body
|
|
6017
|
+
* @param options - additional request options
|
|
6018
|
+
*/
|
|
6019
|
+
post_permission_role(
|
|
6020
|
+
body: PostPermissionRoleBody,
|
|
6021
|
+
options?: RequestOptions
|
|
6022
|
+
): ResponsePromise<PostPermissionRoleResponse> {
|
|
6023
|
+
return this.request(
|
|
6024
|
+
"permission",
|
|
6025
|
+
"post_permission_role",
|
|
6026
|
+
"post",
|
|
6027
|
+
`/permission/role`,
|
|
6028
|
+
body,
|
|
6029
|
+
options
|
|
6030
|
+
);
|
|
6031
|
+
}
|
|
6032
|
+
|
|
6033
|
+
/**
|
|
6034
|
+
* PATCH /permission/role/{id} - Update a role
|
|
6035
|
+
*
|
|
6036
|
+
* @param id - role
|
|
6037
|
+
* @param body
|
|
6038
|
+
* @param options - additional request options
|
|
6039
|
+
*/
|
|
6040
|
+
patch_permission_role(
|
|
6041
|
+
id: string,
|
|
6042
|
+
body: PatchPermissionRoleBody,
|
|
6043
|
+
options?: RequestOptions
|
|
6044
|
+
): ResponsePromise<PatchPermissionRoleResponse> {
|
|
6045
|
+
return this.request(
|
|
6046
|
+
"permission",
|
|
6047
|
+
"patch_permission_role",
|
|
6048
|
+
"patch",
|
|
6049
|
+
`/permission/role/${id}`,
|
|
6050
|
+
body,
|
|
6051
|
+
options
|
|
6052
|
+
);
|
|
6053
|
+
}
|
|
6054
|
+
|
|
6055
|
+
/**
|
|
6056
|
+
* GET /permission/recipient/{recipient_id} - Get permissions for a recipient(role or user id)
|
|
6057
|
+
*
|
|
6058
|
+
* @param recipient_id - TODO: add parameter to swagger.json
|
|
6059
|
+
* @param options - additional request options
|
|
6060
|
+
*/
|
|
6061
|
+
get_permission_recipient(
|
|
6062
|
+
recipient_id: string,
|
|
6063
|
+
options?: {
|
|
6064
|
+
query?: GetPermissionRecipientQuery;
|
|
6065
|
+
} & RequestOptions
|
|
6066
|
+
): ResponsePromise<GetPermissionRecipientResponse> {
|
|
6067
|
+
return this.request(
|
|
6068
|
+
"permission",
|
|
6069
|
+
"get_permission_recipient",
|
|
6070
|
+
"get",
|
|
6071
|
+
`/permission/recipient/${recipient_id}`,
|
|
6072
|
+
null,
|
|
6073
|
+
options
|
|
6074
|
+
);
|
|
6075
|
+
}
|
|
6076
|
+
|
|
6077
|
+
/**
|
|
6078
|
+
* GET /permission/role/user/{user_id} - Get a list of role assignments for a user
|
|
6079
|
+
*
|
|
6080
|
+
* @param user_id - Id of a user
|
|
6081
|
+
* @param options - additional request options
|
|
6082
|
+
*/
|
|
6083
|
+
get_permission_role_user(
|
|
6084
|
+
user_id: string,
|
|
6085
|
+
options?: RequestOptions
|
|
6086
|
+
): ResponsePromise<GetPermissionRoleUserResponse> {
|
|
6087
|
+
return this.request(
|
|
6088
|
+
"permission",
|
|
6089
|
+
"get_permission_role_user",
|
|
6090
|
+
"get",
|
|
6091
|
+
`/permission/role/user/${user_id}`,
|
|
6092
|
+
null,
|
|
6093
|
+
options
|
|
6094
|
+
);
|
|
6095
|
+
}
|
|
6096
|
+
|
|
6097
|
+
/**
|
|
6098
|
+
* POST /permission/role/user/{user_id} - Assign a role to a user
|
|
6099
|
+
*
|
|
6100
|
+
* @param user_id - Id of a user
|
|
6101
|
+
* @param body
|
|
6102
|
+
* @param options - additional request options
|
|
6103
|
+
*/
|
|
6104
|
+
post_permission_role_user(
|
|
6105
|
+
user_id: string,
|
|
6106
|
+
body: PostPermissionRoleUserBody,
|
|
6107
|
+
options?: RequestOptions
|
|
6108
|
+
): ResponsePromise<PostPermissionRoleUserResponse> {
|
|
6109
|
+
return this.request(
|
|
6110
|
+
"permission",
|
|
6111
|
+
"post_permission_role_user",
|
|
6112
|
+
"post",
|
|
6113
|
+
`/permission/role/user/${user_id}`,
|
|
6114
|
+
body,
|
|
6115
|
+
options
|
|
6116
|
+
);
|
|
6117
|
+
}
|
|
6118
|
+
|
|
6119
|
+
/**
|
|
6120
|
+
* DELETE /permission/role/user/{user_id} - Remove a role from a user
|
|
6121
|
+
*
|
|
6122
|
+
* @param user_id - Id of a user
|
|
6123
|
+
* @param body
|
|
6124
|
+
* @param options - additional request options
|
|
6125
|
+
*/
|
|
6126
|
+
delete_permission_role_user(
|
|
6127
|
+
user_id: string,
|
|
6128
|
+
body: DeletePermissionRoleUserBody,
|
|
6129
|
+
options?: RequestOptions
|
|
6130
|
+
): ResponsePromise<DeletePermissionRoleUserResponse> {
|
|
6131
|
+
return this.request(
|
|
6132
|
+
"permission",
|
|
6133
|
+
"delete_permission_role_user",
|
|
6134
|
+
"delete",
|
|
6135
|
+
`/permission/role/user/${user_id}`,
|
|
6136
|
+
body,
|
|
6137
|
+
options
|
|
6138
|
+
);
|
|
6139
|
+
}
|
|
5708
6140
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
|
+
|
|
3
|
+
export interface OMSRequest {
|
|
4
|
+
code: string;
|
|
5
|
+
client_id: string;
|
|
6
|
+
callback_uri: string;
|
|
7
|
+
oms_url: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface Error {
|
|
11
|
+
message?: string;
|
|
12
|
+
code?: number;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface Auth {
|
|
16
|
+
access?: {
|
|
17
|
+
token?: string;
|
|
18
|
+
expires?: string;
|
|
19
|
+
};
|
|
20
|
+
refresh?: {
|
|
21
|
+
token?: string;
|
|
22
|
+
expires?: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface Compassconnect {
|
|
27
|
+
// compassconnect
|
|
28
|
+
id: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface Compassconnects {
|
|
32
|
+
compassconnects: Compassconnect[];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// GET /compassconnect/get_oms_token - Gets an OMS token
|
|
36
|
+
|
|
37
|
+
export interface GetCompassconnectOmsTokenQuery {
|
|
38
|
+
// The SSO code recieved from login
|
|
39
|
+
code: string;
|
|
40
|
+
// The client id of the application getting the token
|
|
41
|
+
client_id: string;
|
|
42
|
+
// The callback uri of the application calling the service
|
|
43
|
+
callback_uri: string;
|
|
44
|
+
// The urle
|
|
45
|
+
oms_url: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type GetCompassconnectOmsTokenResponse = Auth;
|
|
49
|
+
|
|
50
|
+
export interface GetCompassconnectOmsTokenRequest extends GetCompassconnectOmsTokenQuery {}
|
package/src/interface/kds.ts
CHANGED
|
@@ -77,21 +77,19 @@ export type DeleteKdsDeviceAuthResponse = Error;
|
|
|
77
77
|
|
|
78
78
|
export interface DeleteKdsDeviceAuthRequest extends DeleteKdsDeviceAuthPath {}
|
|
79
79
|
|
|
80
|
-
//
|
|
80
|
+
// PATCH /kds/device/info/{device_id} - Update additional information related to the kds
|
|
81
81
|
|
|
82
|
-
export interface
|
|
82
|
+
export interface PatchKdsDeviceInfoPath {
|
|
83
83
|
// serial number encoded as cdl id
|
|
84
84
|
device_id: string;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
export
|
|
88
|
-
brands?: string[];
|
|
89
|
-
}
|
|
87
|
+
export type PatchKdsDeviceInfoBody = string[];
|
|
90
88
|
|
|
91
|
-
export type
|
|
89
|
+
export type PatchKdsDeviceInfoResponse = Error;
|
|
92
90
|
|
|
93
|
-
export interface
|
|
94
|
-
body:
|
|
91
|
+
export interface PatchKdsDeviceInfoRequest extends PatchKdsDeviceInfoPath {
|
|
92
|
+
body: PatchKdsDeviceInfoBody;
|
|
95
93
|
}
|
|
96
94
|
|
|
97
95
|
// GET /kds/swagger.json - Get a swagger for kds service
|