@rasadov/lumoar-sdk 1.1.8 → 1.1.10
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/.openapi-generator/FILES +5 -0
- package/api.ts +461 -0
- package/dist/api.d.ts +338 -0
- package/dist/api.js +235 -0
- package/docs/ControlWithData.md +28 -0
- package/docs/Customer.md +24 -0
- package/docs/CustomerDBBase.md +22 -0
- package/docs/EvidenceApi.md +58 -0
- package/docs/EvidenceWithControl.md +42 -0
- package/docs/PaymentsApi.md +58 -0
- package/docs/ResponseGetSubscriptionV1PaymentsSubscriptionGet.md +30 -0
- package/docs/SubscriptionResponse.md +28 -0
- package/docs/TasksApi.md +58 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -20,10 +20,12 @@ docs/CompanyWithRoles.md
|
|
|
20
20
|
docs/ComplianceGoal.md
|
|
21
21
|
docs/ControlBase.md
|
|
22
22
|
docs/ControlStatus.md
|
|
23
|
+
docs/ControlWithData.md
|
|
23
24
|
docs/ControlWithEvidences.md
|
|
24
25
|
docs/ControlWithRelationships.md
|
|
25
26
|
docs/ControlsApi.md
|
|
26
27
|
docs/CreateTaskSchema.md
|
|
28
|
+
docs/CustomerDBBase.md
|
|
27
29
|
docs/CustomerDoesNotExist.md
|
|
28
30
|
docs/CustomerPortalSession.md
|
|
29
31
|
docs/DeleteTaskSchema.md
|
|
@@ -32,6 +34,7 @@ docs/EvidenceApi.md
|
|
|
32
34
|
docs/EvidenceBase.md
|
|
33
35
|
docs/EvidenceFileSchema.md
|
|
34
36
|
docs/EvidenceTextSchema.md
|
|
37
|
+
docs/EvidenceWithControl.md
|
|
35
38
|
docs/FileDownload.md
|
|
36
39
|
docs/ForgotPasswordSchema.md
|
|
37
40
|
docs/FrameworkControlsBase.md
|
|
@@ -62,9 +65,11 @@ docs/ReportsApi.md
|
|
|
62
65
|
docs/ResendOTPSchema.md
|
|
63
66
|
docs/ResetPasswordSchema.md
|
|
64
67
|
docs/ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet.md
|
|
68
|
+
docs/ResponseGetSubscriptionV1PaymentsSubscriptionGet.md
|
|
65
69
|
docs/RolesApi.md
|
|
66
70
|
docs/RolesWithUser.md
|
|
67
71
|
docs/SchedulerRequest.md
|
|
72
|
+
docs/SubscriptionResponse.md
|
|
68
73
|
docs/TaskPriority.md
|
|
69
74
|
docs/TaskRead.md
|
|
70
75
|
docs/TaskStatus.md
|
package/api.ts
CHANGED
|
@@ -695,6 +695,43 @@ export const ControlStatus = {
|
|
|
695
695
|
export type ControlStatus = typeof ControlStatus[keyof typeof ControlStatus];
|
|
696
696
|
|
|
697
697
|
|
|
698
|
+
/**
|
|
699
|
+
*
|
|
700
|
+
* @export
|
|
701
|
+
* @interface ControlWithData
|
|
702
|
+
*/
|
|
703
|
+
export interface ControlWithData {
|
|
704
|
+
/**
|
|
705
|
+
*
|
|
706
|
+
* @type {string}
|
|
707
|
+
* @memberof ControlWithData
|
|
708
|
+
*/
|
|
709
|
+
'id': string;
|
|
710
|
+
/**
|
|
711
|
+
*
|
|
712
|
+
* @type {string}
|
|
713
|
+
* @memberof ControlWithData
|
|
714
|
+
*/
|
|
715
|
+
'status'?: string | null;
|
|
716
|
+
/**
|
|
717
|
+
*
|
|
718
|
+
* @type {string}
|
|
719
|
+
* @memberof ControlWithData
|
|
720
|
+
*/
|
|
721
|
+
'note'?: string | null;
|
|
722
|
+
/**
|
|
723
|
+
*
|
|
724
|
+
* @type {string}
|
|
725
|
+
* @memberof ControlWithData
|
|
726
|
+
*/
|
|
727
|
+
'updated_at'?: string | null;
|
|
728
|
+
/**
|
|
729
|
+
*
|
|
730
|
+
* @type {FrameworkControlsBase}
|
|
731
|
+
* @memberof ControlWithData
|
|
732
|
+
*/
|
|
733
|
+
'data': FrameworkControlsBase;
|
|
734
|
+
}
|
|
698
735
|
/**
|
|
699
736
|
*
|
|
700
737
|
* @export
|
|
@@ -824,6 +861,25 @@ export interface CreateTaskSchema {
|
|
|
824
861
|
*/
|
|
825
862
|
'assigned_to_id': string;
|
|
826
863
|
}
|
|
864
|
+
/**
|
|
865
|
+
*
|
|
866
|
+
* @export
|
|
867
|
+
* @interface CustomerDBBase
|
|
868
|
+
*/
|
|
869
|
+
export interface CustomerDBBase {
|
|
870
|
+
/**
|
|
871
|
+
*
|
|
872
|
+
* @type {string}
|
|
873
|
+
* @memberof CustomerDBBase
|
|
874
|
+
*/
|
|
875
|
+
'billing_name': string;
|
|
876
|
+
/**
|
|
877
|
+
*
|
|
878
|
+
* @type {string}
|
|
879
|
+
* @memberof CustomerDBBase
|
|
880
|
+
*/
|
|
881
|
+
'billing_email': string;
|
|
882
|
+
}
|
|
827
883
|
/**
|
|
828
884
|
*
|
|
829
885
|
* @export
|
|
@@ -1025,6 +1081,85 @@ export interface EvidenceTextSchema {
|
|
|
1025
1081
|
*/
|
|
1026
1082
|
'content': string;
|
|
1027
1083
|
}
|
|
1084
|
+
/**
|
|
1085
|
+
*
|
|
1086
|
+
* @export
|
|
1087
|
+
* @interface EvidenceWithControl
|
|
1088
|
+
*/
|
|
1089
|
+
export interface EvidenceWithControl {
|
|
1090
|
+
/**
|
|
1091
|
+
*
|
|
1092
|
+
* @type {string}
|
|
1093
|
+
* @memberof EvidenceWithControl
|
|
1094
|
+
*/
|
|
1095
|
+
'id': string;
|
|
1096
|
+
/**
|
|
1097
|
+
*
|
|
1098
|
+
* @type {string}
|
|
1099
|
+
* @memberof EvidenceWithControl
|
|
1100
|
+
*/
|
|
1101
|
+
'control_id': string;
|
|
1102
|
+
/**
|
|
1103
|
+
*
|
|
1104
|
+
* @type {string}
|
|
1105
|
+
* @memberof EvidenceWithControl
|
|
1106
|
+
*/
|
|
1107
|
+
'expires_at'?: string | null;
|
|
1108
|
+
/**
|
|
1109
|
+
*
|
|
1110
|
+
* @type {string}
|
|
1111
|
+
* @memberof EvidenceWithControl
|
|
1112
|
+
*/
|
|
1113
|
+
'status': string;
|
|
1114
|
+
/**
|
|
1115
|
+
*
|
|
1116
|
+
* @type {number}
|
|
1117
|
+
* @memberof EvidenceWithControl
|
|
1118
|
+
*/
|
|
1119
|
+
'version': number;
|
|
1120
|
+
/**
|
|
1121
|
+
*
|
|
1122
|
+
* @type {string}
|
|
1123
|
+
* @memberof EvidenceWithControl
|
|
1124
|
+
*/
|
|
1125
|
+
'evidence_type': string;
|
|
1126
|
+
/**
|
|
1127
|
+
*
|
|
1128
|
+
* @type {EvidenceTextSchema}
|
|
1129
|
+
* @memberof EvidenceWithControl
|
|
1130
|
+
*/
|
|
1131
|
+
'text'?: EvidenceTextSchema | null;
|
|
1132
|
+
/**
|
|
1133
|
+
*
|
|
1134
|
+
* @type {Array<EvidenceFileSchema>}
|
|
1135
|
+
* @memberof EvidenceWithControl
|
|
1136
|
+
*/
|
|
1137
|
+
'files'?: Array<EvidenceFileSchema> | null;
|
|
1138
|
+
/**
|
|
1139
|
+
*
|
|
1140
|
+
* @type {Array<string>}
|
|
1141
|
+
* @memberof EvidenceWithControl
|
|
1142
|
+
*/
|
|
1143
|
+
'tags'?: Array<string> | null;
|
|
1144
|
+
/**
|
|
1145
|
+
*
|
|
1146
|
+
* @type {UserBase}
|
|
1147
|
+
* @memberof EvidenceWithControl
|
|
1148
|
+
*/
|
|
1149
|
+
'uploaded_by'?: UserBase | null;
|
|
1150
|
+
/**
|
|
1151
|
+
*
|
|
1152
|
+
* @type {string}
|
|
1153
|
+
* @memberof EvidenceWithControl
|
|
1154
|
+
*/
|
|
1155
|
+
'submitted_at'?: string | null;
|
|
1156
|
+
/**
|
|
1157
|
+
*
|
|
1158
|
+
* @type {ControlWithData}
|
|
1159
|
+
* @memberof EvidenceWithControl
|
|
1160
|
+
*/
|
|
1161
|
+
'control': ControlWithData;
|
|
1162
|
+
}
|
|
1028
1163
|
/**
|
|
1029
1164
|
*
|
|
1030
1165
|
* @export
|
|
@@ -1661,6 +1796,49 @@ export interface ResponseGetCustomerManagementSessionV1PaymentsCustomerManagemen
|
|
|
1661
1796
|
*/
|
|
1662
1797
|
'message'?: string;
|
|
1663
1798
|
}
|
|
1799
|
+
/**
|
|
1800
|
+
*
|
|
1801
|
+
* @export
|
|
1802
|
+
* @interface ResponseGetSubscriptionV1PaymentsSubscriptionGet
|
|
1803
|
+
*/
|
|
1804
|
+
export interface ResponseGetSubscriptionV1PaymentsSubscriptionGet {
|
|
1805
|
+
/**
|
|
1806
|
+
*
|
|
1807
|
+
* @type {string}
|
|
1808
|
+
* @memberof ResponseGetSubscriptionV1PaymentsSubscriptionGet
|
|
1809
|
+
*/
|
|
1810
|
+
'subscription_id': string;
|
|
1811
|
+
/**
|
|
1812
|
+
*
|
|
1813
|
+
* @type {string}
|
|
1814
|
+
* @memberof ResponseGetSubscriptionV1PaymentsSubscriptionGet
|
|
1815
|
+
*/
|
|
1816
|
+
'status': string;
|
|
1817
|
+
/**
|
|
1818
|
+
*
|
|
1819
|
+
* @type {string}
|
|
1820
|
+
* @memberof ResponseGetSubscriptionV1PaymentsSubscriptionGet
|
|
1821
|
+
*/
|
|
1822
|
+
'product_id': string;
|
|
1823
|
+
/**
|
|
1824
|
+
*
|
|
1825
|
+
* @type {CustomerDBBase}
|
|
1826
|
+
* @memberof ResponseGetSubscriptionV1PaymentsSubscriptionGet
|
|
1827
|
+
*/
|
|
1828
|
+
'customer': CustomerDBBase;
|
|
1829
|
+
/**
|
|
1830
|
+
*
|
|
1831
|
+
* @type {string}
|
|
1832
|
+
* @memberof ResponseGetSubscriptionV1PaymentsSubscriptionGet
|
|
1833
|
+
*/
|
|
1834
|
+
'subscribed_till': string;
|
|
1835
|
+
/**
|
|
1836
|
+
*
|
|
1837
|
+
* @type {string}
|
|
1838
|
+
* @memberof ResponseGetSubscriptionV1PaymentsSubscriptionGet
|
|
1839
|
+
*/
|
|
1840
|
+
'details': string;
|
|
1841
|
+
}
|
|
1664
1842
|
/**
|
|
1665
1843
|
*
|
|
1666
1844
|
* @export
|
|
@@ -1711,6 +1889,43 @@ export interface SchedulerRequest {
|
|
|
1711
1889
|
*/
|
|
1712
1890
|
'user_ids_to_assign'?: Array<string>;
|
|
1713
1891
|
}
|
|
1892
|
+
/**
|
|
1893
|
+
*
|
|
1894
|
+
* @export
|
|
1895
|
+
* @interface SubscriptionResponse
|
|
1896
|
+
*/
|
|
1897
|
+
export interface SubscriptionResponse {
|
|
1898
|
+
/**
|
|
1899
|
+
*
|
|
1900
|
+
* @type {string}
|
|
1901
|
+
* @memberof SubscriptionResponse
|
|
1902
|
+
*/
|
|
1903
|
+
'subscription_id': string;
|
|
1904
|
+
/**
|
|
1905
|
+
*
|
|
1906
|
+
* @type {string}
|
|
1907
|
+
* @memberof SubscriptionResponse
|
|
1908
|
+
*/
|
|
1909
|
+
'status': string;
|
|
1910
|
+
/**
|
|
1911
|
+
*
|
|
1912
|
+
* @type {string}
|
|
1913
|
+
* @memberof SubscriptionResponse
|
|
1914
|
+
*/
|
|
1915
|
+
'product_id': string;
|
|
1916
|
+
/**
|
|
1917
|
+
*
|
|
1918
|
+
* @type {CustomerDBBase}
|
|
1919
|
+
* @memberof SubscriptionResponse
|
|
1920
|
+
*/
|
|
1921
|
+
'customer': CustomerDBBase;
|
|
1922
|
+
/**
|
|
1923
|
+
*
|
|
1924
|
+
* @type {string}
|
|
1925
|
+
* @memberof SubscriptionResponse
|
|
1926
|
+
*/
|
|
1927
|
+
'subscribed_till': string;
|
|
1928
|
+
}
|
|
1714
1929
|
/**
|
|
1715
1930
|
*
|
|
1716
1931
|
* @export
|
|
@@ -3925,6 +4140,48 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3925
4140
|
|
|
3926
4141
|
|
|
3927
4142
|
|
|
4143
|
+
if (authorization != null) {
|
|
4144
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4145
|
+
}
|
|
4146
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4147
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4148
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4149
|
+
|
|
4150
|
+
return {
|
|
4151
|
+
url: toPathString(localVarUrlObj),
|
|
4152
|
+
options: localVarRequestOptions,
|
|
4153
|
+
};
|
|
4154
|
+
},
|
|
4155
|
+
/**
|
|
4156
|
+
*
|
|
4157
|
+
* @summary Get Evidence
|
|
4158
|
+
* @param {string} evidenceId
|
|
4159
|
+
* @param {string} [authorization]
|
|
4160
|
+
* @param {string} [sessionId]
|
|
4161
|
+
* @param {*} [options] Override http request option.
|
|
4162
|
+
* @throws {RequiredError}
|
|
4163
|
+
*/
|
|
4164
|
+
getEvidenceV1EvidenceGetGet: async (evidenceId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4165
|
+
// verify required parameter 'evidenceId' is not null or undefined
|
|
4166
|
+
assertParamExists('getEvidenceV1EvidenceGetGet', 'evidenceId', evidenceId)
|
|
4167
|
+
const localVarPath = `/v1/evidence/get`;
|
|
4168
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4169
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4170
|
+
let baseOptions;
|
|
4171
|
+
if (configuration) {
|
|
4172
|
+
baseOptions = configuration.baseOptions;
|
|
4173
|
+
}
|
|
4174
|
+
|
|
4175
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4176
|
+
const localVarHeaderParameter = {} as any;
|
|
4177
|
+
const localVarQueryParameter = {} as any;
|
|
4178
|
+
|
|
4179
|
+
if (evidenceId !== undefined) {
|
|
4180
|
+
localVarQueryParameter['evidence_id'] = evidenceId;
|
|
4181
|
+
}
|
|
4182
|
+
|
|
4183
|
+
|
|
4184
|
+
|
|
3928
4185
|
if (authorization != null) {
|
|
3929
4186
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3930
4187
|
}
|
|
@@ -4138,6 +4395,21 @@ export const EvidenceApiFp = function(configuration?: Configuration) {
|
|
|
4138
4395
|
const localVarOperationServerBasePath = operationServerMap['EvidenceApi.getEvidenceFilesV1EvidenceFileEvidenceFileIdGet']?.[localVarOperationServerIndex]?.url;
|
|
4139
4396
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4140
4397
|
},
|
|
4398
|
+
/**
|
|
4399
|
+
*
|
|
4400
|
+
* @summary Get Evidence
|
|
4401
|
+
* @param {string} evidenceId
|
|
4402
|
+
* @param {string} [authorization]
|
|
4403
|
+
* @param {string} [sessionId]
|
|
4404
|
+
* @param {*} [options] Override http request option.
|
|
4405
|
+
* @throws {RequiredError}
|
|
4406
|
+
*/
|
|
4407
|
+
async getEvidenceV1EvidenceGetGet(evidenceId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EvidenceWithControl>> {
|
|
4408
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEvidenceV1EvidenceGetGet(evidenceId, authorization, sessionId, options);
|
|
4409
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4410
|
+
const localVarOperationServerBasePath = operationServerMap['EvidenceApi.getEvidenceV1EvidenceGetGet']?.[localVarOperationServerIndex]?.url;
|
|
4411
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4412
|
+
},
|
|
4141
4413
|
/**
|
|
4142
4414
|
*
|
|
4143
4415
|
* @summary List Company Evidence
|
|
@@ -4221,6 +4493,18 @@ export const EvidenceApiFactory = function (configuration?: Configuration, baseP
|
|
|
4221
4493
|
getEvidenceFilesV1EvidenceFileEvidenceFileIdGet(evidenceFileId: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<FileDownload> {
|
|
4222
4494
|
return localVarFp.getEvidenceFilesV1EvidenceFileEvidenceFileIdGet(evidenceFileId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4223
4495
|
},
|
|
4496
|
+
/**
|
|
4497
|
+
*
|
|
4498
|
+
* @summary Get Evidence
|
|
4499
|
+
* @param {string} evidenceId
|
|
4500
|
+
* @param {string} [authorization]
|
|
4501
|
+
* @param {string} [sessionId]
|
|
4502
|
+
* @param {*} [options] Override http request option.
|
|
4503
|
+
* @throws {RequiredError}
|
|
4504
|
+
*/
|
|
4505
|
+
getEvidenceV1EvidenceGetGet(evidenceId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<EvidenceWithControl> {
|
|
4506
|
+
return localVarFp.getEvidenceV1EvidenceGetGet(evidenceId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4507
|
+
},
|
|
4224
4508
|
/**
|
|
4225
4509
|
*
|
|
4226
4510
|
* @summary List Company Evidence
|
|
@@ -4299,6 +4583,20 @@ export class EvidenceApi extends BaseAPI {
|
|
|
4299
4583
|
return EvidenceApiFp(this.configuration).getEvidenceFilesV1EvidenceFileEvidenceFileIdGet(evidenceFileId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4300
4584
|
}
|
|
4301
4585
|
|
|
4586
|
+
/**
|
|
4587
|
+
*
|
|
4588
|
+
* @summary Get Evidence
|
|
4589
|
+
* @param {string} evidenceId
|
|
4590
|
+
* @param {string} [authorization]
|
|
4591
|
+
* @param {string} [sessionId]
|
|
4592
|
+
* @param {*} [options] Override http request option.
|
|
4593
|
+
* @throws {RequiredError}
|
|
4594
|
+
* @memberof EvidenceApi
|
|
4595
|
+
*/
|
|
4596
|
+
public getEvidenceV1EvidenceGetGet(evidenceId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
4597
|
+
return EvidenceApiFp(this.configuration).getEvidenceV1EvidenceGetGet(evidenceId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4598
|
+
}
|
|
4599
|
+
|
|
4302
4600
|
/**
|
|
4303
4601
|
*
|
|
4304
4602
|
* @summary List Company Evidence
|
|
@@ -4775,6 +5073,48 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4775
5073
|
|
|
4776
5074
|
|
|
4777
5075
|
|
|
5076
|
+
if (authorization != null) {
|
|
5077
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5078
|
+
}
|
|
5079
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5080
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5081
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5082
|
+
|
|
5083
|
+
return {
|
|
5084
|
+
url: toPathString(localVarUrlObj),
|
|
5085
|
+
options: localVarRequestOptions,
|
|
5086
|
+
};
|
|
5087
|
+
},
|
|
5088
|
+
/**
|
|
5089
|
+
*
|
|
5090
|
+
* @summary Get Subscription
|
|
5091
|
+
* @param {string} companyId
|
|
5092
|
+
* @param {string} [authorization]
|
|
5093
|
+
* @param {string} [sessionId]
|
|
5094
|
+
* @param {*} [options] Override http request option.
|
|
5095
|
+
* @throws {RequiredError}
|
|
5096
|
+
*/
|
|
5097
|
+
getSubscriptionV1PaymentsSubscriptionGet: async (companyId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5098
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
5099
|
+
assertParamExists('getSubscriptionV1PaymentsSubscriptionGet', 'companyId', companyId)
|
|
5100
|
+
const localVarPath = `/v1/payments/subscription`;
|
|
5101
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5102
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5103
|
+
let baseOptions;
|
|
5104
|
+
if (configuration) {
|
|
5105
|
+
baseOptions = configuration.baseOptions;
|
|
5106
|
+
}
|
|
5107
|
+
|
|
5108
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5109
|
+
const localVarHeaderParameter = {} as any;
|
|
5110
|
+
const localVarQueryParameter = {} as any;
|
|
5111
|
+
|
|
5112
|
+
if (companyId !== undefined) {
|
|
5113
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
5114
|
+
}
|
|
5115
|
+
|
|
5116
|
+
|
|
5117
|
+
|
|
4778
5118
|
if (authorization != null) {
|
|
4779
5119
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4780
5120
|
}
|
|
@@ -4857,6 +5197,21 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
4857
5197
|
const localVarOperationServerBasePath = operationServerMap['PaymentsApi.getCustomerManagementSessionV1PaymentsCustomerManagementGet']?.[localVarOperationServerIndex]?.url;
|
|
4858
5198
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4859
5199
|
},
|
|
5200
|
+
/**
|
|
5201
|
+
*
|
|
5202
|
+
* @summary Get Subscription
|
|
5203
|
+
* @param {string} companyId
|
|
5204
|
+
* @param {string} [authorization]
|
|
5205
|
+
* @param {string} [sessionId]
|
|
5206
|
+
* @param {*} [options] Override http request option.
|
|
5207
|
+
* @throws {RequiredError}
|
|
5208
|
+
*/
|
|
5209
|
+
async getSubscriptionV1PaymentsSubscriptionGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResponseGetSubscriptionV1PaymentsSubscriptionGet>> {
|
|
5210
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSubscriptionV1PaymentsSubscriptionGet(companyId, authorization, sessionId, options);
|
|
5211
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5212
|
+
const localVarOperationServerBasePath = operationServerMap['PaymentsApi.getSubscriptionV1PaymentsSubscriptionGet']?.[localVarOperationServerIndex]?.url;
|
|
5213
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5214
|
+
},
|
|
4860
5215
|
/**
|
|
4861
5216
|
*
|
|
4862
5217
|
* @summary Webhook
|
|
@@ -4903,6 +5258,18 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
4903
5258
|
getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet> {
|
|
4904
5259
|
return localVarFp.getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4905
5260
|
},
|
|
5261
|
+
/**
|
|
5262
|
+
*
|
|
5263
|
+
* @summary Get Subscription
|
|
5264
|
+
* @param {string} companyId
|
|
5265
|
+
* @param {string} [authorization]
|
|
5266
|
+
* @param {string} [sessionId]
|
|
5267
|
+
* @param {*} [options] Override http request option.
|
|
5268
|
+
* @throws {RequiredError}
|
|
5269
|
+
*/
|
|
5270
|
+
getSubscriptionV1PaymentsSubscriptionGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ResponseGetSubscriptionV1PaymentsSubscriptionGet> {
|
|
5271
|
+
return localVarFp.getSubscriptionV1PaymentsSubscriptionGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
5272
|
+
},
|
|
4906
5273
|
/**
|
|
4907
5274
|
*
|
|
4908
5275
|
* @summary Webhook
|
|
@@ -4950,6 +5317,20 @@ export class PaymentsApi extends BaseAPI {
|
|
|
4950
5317
|
return PaymentsApiFp(this.configuration).getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4951
5318
|
}
|
|
4952
5319
|
|
|
5320
|
+
/**
|
|
5321
|
+
*
|
|
5322
|
+
* @summary Get Subscription
|
|
5323
|
+
* @param {string} companyId
|
|
5324
|
+
* @param {string} [authorization]
|
|
5325
|
+
* @param {string} [sessionId]
|
|
5326
|
+
* @param {*} [options] Override http request option.
|
|
5327
|
+
* @throws {RequiredError}
|
|
5328
|
+
* @memberof PaymentsApi
|
|
5329
|
+
*/
|
|
5330
|
+
public getSubscriptionV1PaymentsSubscriptionGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
5331
|
+
return PaymentsApiFp(this.configuration).getSubscriptionV1PaymentsSubscriptionGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
5332
|
+
}
|
|
5333
|
+
|
|
4953
5334
|
/**
|
|
4954
5335
|
*
|
|
4955
5336
|
* @summary Webhook
|
|
@@ -6274,6 +6655,45 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
6274
6655
|
options: localVarRequestOptions,
|
|
6275
6656
|
};
|
|
6276
6657
|
},
|
|
6658
|
+
/**
|
|
6659
|
+
*
|
|
6660
|
+
* @summary Get Task
|
|
6661
|
+
* @param {string} taskId
|
|
6662
|
+
* @param {string} [authorization]
|
|
6663
|
+
* @param {string} [sessionId]
|
|
6664
|
+
* @param {*} [options] Override http request option.
|
|
6665
|
+
* @throws {RequiredError}
|
|
6666
|
+
*/
|
|
6667
|
+
getTaskV1TasksGetTaskIdGet: async (taskId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6668
|
+
// verify required parameter 'taskId' is not null or undefined
|
|
6669
|
+
assertParamExists('getTaskV1TasksGetTaskIdGet', 'taskId', taskId)
|
|
6670
|
+
const localVarPath = `/v1/tasks/get/{task_id}`
|
|
6671
|
+
.replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
|
|
6672
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6673
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6674
|
+
let baseOptions;
|
|
6675
|
+
if (configuration) {
|
|
6676
|
+
baseOptions = configuration.baseOptions;
|
|
6677
|
+
}
|
|
6678
|
+
|
|
6679
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
6680
|
+
const localVarHeaderParameter = {} as any;
|
|
6681
|
+
const localVarQueryParameter = {} as any;
|
|
6682
|
+
|
|
6683
|
+
|
|
6684
|
+
|
|
6685
|
+
if (authorization != null) {
|
|
6686
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
6687
|
+
}
|
|
6688
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6689
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6690
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6691
|
+
|
|
6692
|
+
return {
|
|
6693
|
+
url: toPathString(localVarUrlObj),
|
|
6694
|
+
options: localVarRequestOptions,
|
|
6695
|
+
};
|
|
6696
|
+
},
|
|
6277
6697
|
/**
|
|
6278
6698
|
*
|
|
6279
6699
|
* @summary List Tasks For Company
|
|
@@ -6609,6 +7029,21 @@ export const TasksApiFp = function(configuration?: Configuration) {
|
|
|
6609
7029
|
const localVarOperationServerBasePath = operationServerMap['TasksApi.deleteTaskV1TasksDelete']?.[localVarOperationServerIndex]?.url;
|
|
6610
7030
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6611
7031
|
},
|
|
7032
|
+
/**
|
|
7033
|
+
*
|
|
7034
|
+
* @summary Get Task
|
|
7035
|
+
* @param {string} taskId
|
|
7036
|
+
* @param {string} [authorization]
|
|
7037
|
+
* @param {string} [sessionId]
|
|
7038
|
+
* @param {*} [options] Override http request option.
|
|
7039
|
+
* @throws {RequiredError}
|
|
7040
|
+
*/
|
|
7041
|
+
async getTaskV1TasksGetTaskIdGet(taskId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TaskWithUser>> {
|
|
7042
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTaskV1TasksGetTaskIdGet(taskId, authorization, sessionId, options);
|
|
7043
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7044
|
+
const localVarOperationServerBasePath = operationServerMap['TasksApi.getTaskV1TasksGetTaskIdGet']?.[localVarOperationServerIndex]?.url;
|
|
7045
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7046
|
+
},
|
|
6612
7047
|
/**
|
|
6613
7048
|
*
|
|
6614
7049
|
* @summary List Tasks For Company
|
|
@@ -6734,6 +7169,18 @@ export const TasksApiFactory = function (configuration?: Configuration, basePath
|
|
|
6734
7169
|
deleteTaskV1TasksDelete(deleteTaskSchema: DeleteTaskSchema, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
|
|
6735
7170
|
return localVarFp.deleteTaskV1TasksDelete(deleteTaskSchema, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
6736
7171
|
},
|
|
7172
|
+
/**
|
|
7173
|
+
*
|
|
7174
|
+
* @summary Get Task
|
|
7175
|
+
* @param {string} taskId
|
|
7176
|
+
* @param {string} [authorization]
|
|
7177
|
+
* @param {string} [sessionId]
|
|
7178
|
+
* @param {*} [options] Override http request option.
|
|
7179
|
+
* @throws {RequiredError}
|
|
7180
|
+
*/
|
|
7181
|
+
getTaskV1TasksGetTaskIdGet(taskId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<TaskWithUser> {
|
|
7182
|
+
return localVarFp.getTaskV1TasksGetTaskIdGet(taskId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
7183
|
+
},
|
|
6737
7184
|
/**
|
|
6738
7185
|
*
|
|
6739
7186
|
* @summary List Tasks For Company
|
|
@@ -6848,6 +7295,20 @@ export class TasksApi extends BaseAPI {
|
|
|
6848
7295
|
return TasksApiFp(this.configuration).deleteTaskV1TasksDelete(deleteTaskSchema, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
6849
7296
|
}
|
|
6850
7297
|
|
|
7298
|
+
/**
|
|
7299
|
+
*
|
|
7300
|
+
* @summary Get Task
|
|
7301
|
+
* @param {string} taskId
|
|
7302
|
+
* @param {string} [authorization]
|
|
7303
|
+
* @param {string} [sessionId]
|
|
7304
|
+
* @param {*} [options] Override http request option.
|
|
7305
|
+
* @throws {RequiredError}
|
|
7306
|
+
* @memberof TasksApi
|
|
7307
|
+
*/
|
|
7308
|
+
public getTaskV1TasksGetTaskIdGet(taskId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
7309
|
+
return TasksApiFp(this.configuration).getTaskV1TasksGetTaskIdGet(taskId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
7310
|
+
}
|
|
7311
|
+
|
|
6851
7312
|
/**
|
|
6852
7313
|
*
|
|
6853
7314
|
* @summary List Tasks For Company
|