@widgetic/api-sdk 1.0.16 → 1.0.17
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/dist/apis/ABTestingApi.js +90 -30
- package/dist/apis/AdminApi.js +12 -4
- package/dist/apis/AuthenticationApi.d.ts +3 -3
- package/dist/apis/AuthenticationApi.js +31 -11
- package/dist/apis/BatchApi.js +6 -2
- package/dist/apis/BillingApi.d.ts +13 -13
- package/dist/apis/BillingApi.js +8 -8
- package/dist/apis/CanvasesApi.js +30 -10
- package/dist/apis/ComponentsApi.d.ts +3 -3
- package/dist/apis/ComponentsApi.js +43 -15
- package/dist/apis/CompositionsApi.js +132 -44
- package/dist/apis/ContentsApi.js +36 -12
- package/dist/apis/ConversationsApi.js +30 -10
- package/dist/apis/CreditsApi.js +30 -10
- package/dist/apis/DemoContentsApi.js +30 -10
- package/dist/apis/EntitlementsApi.js +30 -10
- package/dist/apis/FoldersApi.js +30 -10
- package/dist/apis/HealthApi.js +12 -4
- package/dist/apis/IntegrationsApi.js +42 -14
- package/dist/apis/InvitationsApi.js +12 -4
- package/dist/apis/InvoicesApi.js +36 -12
- package/dist/apis/ManagedUsersApi.js +36 -12
- package/dist/apis/MessagesApi.js +36 -12
- package/dist/apis/OrganizationActivitiesApi.d.ts +93 -0
- package/dist/apis/OrganizationActivitiesApi.js +221 -0
- package/dist/apis/OrganizationsApi.d.ts +31 -106
- package/dist/apis/OrganizationsApi.js +324 -292
- package/dist/apis/PartnerCustomizationsApi.js +30 -10
- package/dist/apis/PartnersApi.js +30 -10
- package/dist/apis/PromptsApi.js +30 -10
- package/dist/apis/SubscriptionPlansApi.js +12 -4
- package/dist/apis/SubscriptionsApi.js +48 -16
- package/dist/apis/TranslationsApi.d.ts +5 -5
- package/dist/apis/TranslationsApi.js +2 -2
- package/dist/apis/UIComponentsApi.js +24 -8
- package/dist/apis/UsageApi.js +42 -14
- package/dist/apis/UsersApi.d.ts +3 -3
- package/dist/apis/UsersApi.js +1 -1
- package/dist/apis/WorkspacesApi.js +78 -26
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ABTestingApi.js +90 -30
- package/dist/esm/apis/AdminApi.js +12 -4
- package/dist/esm/apis/AuthenticationApi.d.ts +3 -3
- package/dist/esm/apis/AuthenticationApi.js +32 -12
- package/dist/esm/apis/BatchApi.js +6 -2
- package/dist/esm/apis/BillingApi.d.ts +13 -13
- package/dist/esm/apis/BillingApi.js +9 -9
- package/dist/esm/apis/CanvasesApi.js +30 -10
- package/dist/esm/apis/ComponentsApi.d.ts +3 -3
- package/dist/esm/apis/ComponentsApi.js +44 -16
- package/dist/esm/apis/CompositionsApi.js +132 -44
- package/dist/esm/apis/ContentsApi.js +36 -12
- package/dist/esm/apis/ConversationsApi.js +30 -10
- package/dist/esm/apis/CreditsApi.js +30 -10
- package/dist/esm/apis/DemoContentsApi.js +30 -10
- package/dist/esm/apis/EntitlementsApi.js +30 -10
- package/dist/esm/apis/FoldersApi.js +30 -10
- package/dist/esm/apis/HealthApi.js +12 -4
- package/dist/esm/apis/IntegrationsApi.js +42 -14
- package/dist/esm/apis/InvitationsApi.js +12 -4
- package/dist/esm/apis/InvoicesApi.js +36 -12
- package/dist/esm/apis/ManagedUsersApi.js +36 -12
- package/dist/esm/apis/MessagesApi.js +36 -12
- package/dist/esm/apis/OrganizationActivitiesApi.d.ts +93 -0
- package/dist/esm/apis/OrganizationActivitiesApi.js +217 -0
- package/dist/esm/apis/OrganizationsApi.d.ts +31 -106
- package/dist/esm/apis/OrganizationsApi.js +324 -292
- package/dist/esm/apis/PartnerCustomizationsApi.js +30 -10
- package/dist/esm/apis/PartnersApi.js +30 -10
- package/dist/esm/apis/PromptsApi.js +30 -10
- package/dist/esm/apis/SubscriptionPlansApi.js +12 -4
- package/dist/esm/apis/SubscriptionsApi.js +48 -16
- package/dist/esm/apis/TranslationsApi.d.ts +5 -5
- package/dist/esm/apis/TranslationsApi.js +3 -3
- package/dist/esm/apis/UIComponentsApi.js +24 -8
- package/dist/esm/apis/UsageApi.js +42 -14
- package/dist/esm/apis/UsersApi.d.ts +3 -3
- package/dist/esm/apis/UsersApi.js +2 -2
- package/dist/esm/apis/WorkspacesApi.js +78 -26
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AgentModelsGet200ResponseModelsInner.d.ts +6 -0
- package/dist/esm/models/AgentModelsGet200ResponseModelsInner.js +2 -0
- package/dist/esm/models/Canvas.d.ts +6 -0
- package/dist/esm/models/Canvas.js +2 -0
- package/dist/esm/models/CreateCanvasRequest.d.ts +6 -0
- package/dist/esm/models/CreateCanvasRequest.js +2 -0
- package/dist/esm/models/ErrorResponse.d.ts +12 -12
- package/dist/esm/models/ErrorResponse.js +4 -4
- package/dist/esm/models/GetCompositionsBatch200Response.d.ts +3 -3
- package/dist/esm/models/GetCompositionsBatch200Response.js +3 -3
- package/dist/esm/models/GetWidgetsBatch200Response.d.ts +3 -3
- package/dist/esm/models/GetWidgetsBatch200Response.js +3 -3
- package/dist/esm/models/GetWidgetsBatch200ResponseErrorsInner.d.ts +38 -0
- package/dist/esm/models/{GetCompositionsBatch200ResponseErrorsInner.js → GetWidgetsBatch200ResponseErrorsInner.js} +8 -8
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.d.ts +39 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.js +44 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.d.ts +33 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.js +42 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +62 -0
- package/dist/esm/models/{ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js → OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.js} +8 -8
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.d.ts +39 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.js +44 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.d.ts +33 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.js +42 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPostRequest.d.ts +32 -0
- package/dist/esm/models/{ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js → OrganizationsOrgIdBillingPaymentMethodsPostRequest.js} +8 -8
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.d.ts +39 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.js +44 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.d.ts +50 -0
- package/dist/esm/models/{ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js → OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.js} +8 -8
- package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200Response.d.ts +39 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200Response.js +44 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200ResponseData.d.ts +32 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200ResponseData.js +41 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPortalPostRequest.d.ts +32 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPortalPostRequest.js +41 -0
- package/dist/esm/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.d.ts +38 -0
- package/dist/esm/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.js +43 -0
- package/dist/esm/models/UpdateCanvasRequest.d.ts +6 -0
- package/dist/esm/models/UpdateCanvasRequest.js +2 -0
- package/dist/esm/models/UpdateWidgetRequest.d.ts +12 -0
- package/dist/esm/models/UpdateWidgetRequest.js +5 -0
- package/dist/esm/models/UsersSendFeedbackPost200Response.d.ts +38 -0
- package/dist/esm/models/{RollbackComponent200Response.js → UsersSendFeedbackPost200Response.js} +8 -8
- package/dist/esm/models/index.d.ts +24 -24
- package/dist/esm/models/index.js +24 -24
- package/dist/models/AgentModelsGet200ResponseModelsInner.d.ts +6 -0
- package/dist/models/AgentModelsGet200ResponseModelsInner.js +2 -0
- package/dist/models/Canvas.d.ts +6 -0
- package/dist/models/Canvas.js +2 -0
- package/dist/models/CreateCanvasRequest.d.ts +6 -0
- package/dist/models/CreateCanvasRequest.js +2 -0
- package/dist/models/ErrorResponse.d.ts +12 -12
- package/dist/models/ErrorResponse.js +4 -4
- package/dist/models/GetCompositionsBatch200Response.d.ts +3 -3
- package/dist/models/GetCompositionsBatch200Response.js +3 -3
- package/dist/models/GetWidgetsBatch200Response.d.ts +3 -3
- package/dist/models/GetWidgetsBatch200Response.js +3 -3
- package/dist/models/GetWidgetsBatch200ResponseErrorsInner.d.ts +38 -0
- package/dist/models/GetWidgetsBatch200ResponseErrorsInner.js +50 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.d.ts +39 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.js +51 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.d.ts +33 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.js +49 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +62 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +58 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.d.ts +39 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.js +51 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.d.ts +33 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.js +49 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPostRequest.d.ts +32 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPostRequest.js +50 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.d.ts +39 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.js +51 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.d.ts +50 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.js +54 -0
- package/dist/models/OrganizationsOrgIdBillingPortalPost200Response.d.ts +39 -0
- package/dist/models/OrganizationsOrgIdBillingPortalPost200Response.js +51 -0
- package/dist/models/OrganizationsOrgIdBillingPortalPost200ResponseData.d.ts +32 -0
- package/dist/models/OrganizationsOrgIdBillingPortalPost200ResponseData.js +48 -0
- package/dist/models/OrganizationsOrgIdBillingPortalPostRequest.d.ts +32 -0
- package/dist/models/OrganizationsOrgIdBillingPortalPostRequest.js +48 -0
- package/dist/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.d.ts +38 -0
- package/dist/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.js +50 -0
- package/dist/models/UpdateCanvasRequest.d.ts +6 -0
- package/dist/models/UpdateCanvasRequest.js +2 -0
- package/dist/models/UpdateWidgetRequest.d.ts +12 -0
- package/dist/models/UpdateWidgetRequest.js +5 -0
- package/dist/models/UsersSendFeedbackPost200Response.d.ts +38 -0
- package/dist/models/UsersSendFeedbackPost200Response.js +50 -0
- package/dist/models/index.d.ts +24 -24
- package/dist/models/index.js +24 -24
- package/package.json +1 -1
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +0 -39
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +0 -44
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +0 -33
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +0 -42
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +0 -62
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +0 -39
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +0 -44
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +0 -33
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +0 -42
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +0 -32
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +0 -39
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +0 -44
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +0 -50
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +0 -39
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.js +0 -44
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +0 -32
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +0 -41
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +0 -32
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.js +0 -41
- package/dist/esm/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +0 -38
- package/dist/esm/models/LoginUser200Response.d.ts +0 -38
- package/dist/esm/models/LoginUser200Response.js +0 -43
- package/dist/esm/models/RollbackComponent200Response.d.ts +0 -38
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +0 -39
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +0 -51
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +0 -33
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +0 -49
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +0 -62
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +0 -58
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +0 -39
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +0 -51
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +0 -33
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +0 -49
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +0 -32
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js +0 -50
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +0 -39
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +0 -51
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +0 -50
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js +0 -54
- package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +0 -39
- package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.js +0 -51
- package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +0 -32
- package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +0 -48
- package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +0 -32
- package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.js +0 -48
- package/dist/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +0 -38
- package/dist/models/GetCompositionsBatch200ResponseErrorsInner.js +0 -50
- package/dist/models/LoginUser200Response.d.ts +0 -38
- package/dist/models/LoginUser200Response.js +0 -50
- package/dist/models/RollbackComponent200Response.d.ts +0 -38
- package/dist/models/RollbackComponent200Response.js +0 -50
package/dist/apis/CreditsApi.js
CHANGED
|
@@ -40,8 +40,12 @@ class CreditsApi extends runtime.BaseAPI {
|
|
|
40
40
|
const queryParameters = {};
|
|
41
41
|
const headerParameters = {};
|
|
42
42
|
headerParameters['Content-Type'] = 'application/json';
|
|
43
|
-
if (this.configuration && this.configuration.
|
|
44
|
-
|
|
43
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
44
|
+
const token = this.configuration.accessToken;
|
|
45
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
46
|
+
if (tokenString) {
|
|
47
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
48
|
+
}
|
|
45
49
|
}
|
|
46
50
|
const response = yield this.request({
|
|
47
51
|
path: `/credits/add`,
|
|
@@ -77,8 +81,12 @@ class CreditsApi extends runtime.BaseAPI {
|
|
|
77
81
|
queryParameters['offset'] = requestParameters['offset'];
|
|
78
82
|
}
|
|
79
83
|
const headerParameters = {};
|
|
80
|
-
if (this.configuration && this.configuration.
|
|
81
|
-
|
|
84
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
85
|
+
const token = this.configuration.accessToken;
|
|
86
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
87
|
+
if (tokenString) {
|
|
88
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
89
|
+
}
|
|
82
90
|
}
|
|
83
91
|
const response = yield this.request({
|
|
84
92
|
path: `/credits/balances`,
|
|
@@ -110,8 +118,12 @@ class CreditsApi extends runtime.BaseAPI {
|
|
|
110
118
|
}
|
|
111
119
|
const queryParameters = {};
|
|
112
120
|
const headerParameters = {};
|
|
113
|
-
if (this.configuration && this.configuration.
|
|
114
|
-
|
|
121
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
122
|
+
const token = this.configuration.accessToken;
|
|
123
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
124
|
+
if (tokenString) {
|
|
125
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
126
|
+
}
|
|
115
127
|
}
|
|
116
128
|
const response = yield this.request({
|
|
117
129
|
path: `/users/{userId}/credits/balance`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
@@ -152,8 +164,12 @@ class CreditsApi extends runtime.BaseAPI {
|
|
|
152
164
|
queryParameters['offset'] = requestParameters['offset'];
|
|
153
165
|
}
|
|
154
166
|
const headerParameters = {};
|
|
155
|
-
if (this.configuration && this.configuration.
|
|
156
|
-
|
|
167
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
168
|
+
const token = this.configuration.accessToken;
|
|
169
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
170
|
+
if (tokenString) {
|
|
171
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
172
|
+
}
|
|
157
173
|
}
|
|
158
174
|
const response = yield this.request({
|
|
159
175
|
path: `/users/{userId}/credits/transactions`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
@@ -186,8 +202,12 @@ class CreditsApi extends runtime.BaseAPI {
|
|
|
186
202
|
const queryParameters = {};
|
|
187
203
|
const headerParameters = {};
|
|
188
204
|
headerParameters['Content-Type'] = 'application/json';
|
|
189
|
-
if (this.configuration && this.configuration.
|
|
190
|
-
|
|
205
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
206
|
+
const token = this.configuration.accessToken;
|
|
207
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
208
|
+
if (tokenString) {
|
|
209
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
210
|
+
}
|
|
191
211
|
}
|
|
192
212
|
const response = yield this.request({
|
|
193
213
|
path: `/credits/subtract`,
|
|
@@ -44,8 +44,12 @@ class DemoContentsApi extends runtime.BaseAPI {
|
|
|
44
44
|
const queryParameters = {};
|
|
45
45
|
const headerParameters = {};
|
|
46
46
|
headerParameters['Content-Type'] = 'application/json';
|
|
47
|
-
if (this.configuration && this.configuration.
|
|
48
|
-
|
|
47
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
48
|
+
const token = this.configuration.accessToken;
|
|
49
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
50
|
+
if (tokenString) {
|
|
51
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
52
|
+
}
|
|
49
53
|
}
|
|
50
54
|
const response = yield this.request({
|
|
51
55
|
path: `/widgets/{widgetId}/demo_contents`.replace(`{${"widgetId"}}`, encodeURIComponent(String(requestParameters['widgetId']))),
|
|
@@ -81,8 +85,12 @@ class DemoContentsApi extends runtime.BaseAPI {
|
|
|
81
85
|
}
|
|
82
86
|
const queryParameters = {};
|
|
83
87
|
const headerParameters = {};
|
|
84
|
-
if (this.configuration && this.configuration.
|
|
85
|
-
|
|
88
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
89
|
+
const token = this.configuration.accessToken;
|
|
90
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
91
|
+
if (tokenString) {
|
|
92
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
93
|
+
}
|
|
86
94
|
}
|
|
87
95
|
const response = yield this.request({
|
|
88
96
|
path: `/widgets/{widgetId}/demo_contents/{id}`.replace(`{${"widgetId"}}`, encodeURIComponent(String(requestParameters['widgetId']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -123,8 +131,12 @@ class DemoContentsApi extends runtime.BaseAPI {
|
|
|
123
131
|
queryParameters['sort'] = requestParameters['sort'];
|
|
124
132
|
}
|
|
125
133
|
const headerParameters = {};
|
|
126
|
-
if (this.configuration && this.configuration.
|
|
127
|
-
|
|
134
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
135
|
+
const token = this.configuration.accessToken;
|
|
136
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
137
|
+
if (tokenString) {
|
|
138
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
139
|
+
}
|
|
128
140
|
}
|
|
129
141
|
const response = yield this.request({
|
|
130
142
|
path: `/widgets/{widgetId}/demo_contents`.replace(`{${"widgetId"}}`, encodeURIComponent(String(requestParameters['widgetId']))),
|
|
@@ -159,8 +171,12 @@ class DemoContentsApi extends runtime.BaseAPI {
|
|
|
159
171
|
}
|
|
160
172
|
const queryParameters = {};
|
|
161
173
|
const headerParameters = {};
|
|
162
|
-
if (this.configuration && this.configuration.
|
|
163
|
-
|
|
174
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
175
|
+
const token = this.configuration.accessToken;
|
|
176
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
177
|
+
if (tokenString) {
|
|
178
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
179
|
+
}
|
|
164
180
|
}
|
|
165
181
|
const response = yield this.request({
|
|
166
182
|
path: `/widgets/{widgetId}/demo_contents/{id}`.replace(`{${"widgetId"}}`, encodeURIComponent(String(requestParameters['widgetId']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -199,8 +215,12 @@ class DemoContentsApi extends runtime.BaseAPI {
|
|
|
199
215
|
const queryParameters = {};
|
|
200
216
|
const headerParameters = {};
|
|
201
217
|
headerParameters['Content-Type'] = 'application/json';
|
|
202
|
-
if (this.configuration && this.configuration.
|
|
203
|
-
|
|
218
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
219
|
+
const token = this.configuration.accessToken;
|
|
220
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
221
|
+
if (tokenString) {
|
|
222
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
223
|
+
}
|
|
204
224
|
}
|
|
205
225
|
const response = yield this.request({
|
|
206
226
|
path: `/widgets/{widgetId}/demo_contents/{id}`.replace(`{${"widgetId"}}`, encodeURIComponent(String(requestParameters['widgetId']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -40,8 +40,12 @@ class EntitlementsApi extends runtime.BaseAPI {
|
|
|
40
40
|
}
|
|
41
41
|
const queryParameters = {};
|
|
42
42
|
const headerParameters = {};
|
|
43
|
-
if (this.configuration && this.configuration.
|
|
44
|
-
|
|
43
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
44
|
+
const token = this.configuration.accessToken;
|
|
45
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
46
|
+
if (tokenString) {
|
|
47
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
48
|
+
}
|
|
45
49
|
}
|
|
46
50
|
const response = yield this.request({
|
|
47
51
|
path: `/entitlements/check/{feature}`.replace(`{${"feature"}}`, encodeURIComponent(String(requestParameters['feature']))),
|
|
@@ -82,8 +86,12 @@ class EntitlementsApi extends runtime.BaseAPI {
|
|
|
82
86
|
queryParameters['source'] = requestParameters['source'];
|
|
83
87
|
}
|
|
84
88
|
const headerParameters = {};
|
|
85
|
-
if (this.configuration && this.configuration.
|
|
86
|
-
|
|
89
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
90
|
+
const token = this.configuration.accessToken;
|
|
91
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
92
|
+
if (tokenString) {
|
|
93
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
94
|
+
}
|
|
87
95
|
}
|
|
88
96
|
const response = yield this.request({
|
|
89
97
|
path: `/managed-users/{managedUserId}/entitlements`.replace(`{${"managedUserId"}}`, encodeURIComponent(String(requestParameters['managedUserId']))),
|
|
@@ -124,8 +132,12 @@ class EntitlementsApi extends runtime.BaseAPI {
|
|
|
124
132
|
queryParameters['source'] = requestParameters['source'];
|
|
125
133
|
}
|
|
126
134
|
const headerParameters = {};
|
|
127
|
-
if (this.configuration && this.configuration.
|
|
128
|
-
|
|
135
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
136
|
+
const token = this.configuration.accessToken;
|
|
137
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
138
|
+
if (tokenString) {
|
|
139
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
140
|
+
}
|
|
129
141
|
}
|
|
130
142
|
const response = yield this.request({
|
|
131
143
|
path: `/partners/{partnerId}/entitlements`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
|
|
@@ -163,8 +175,12 @@ class EntitlementsApi extends runtime.BaseAPI {
|
|
|
163
175
|
queryParameters['source'] = requestParameters['source'];
|
|
164
176
|
}
|
|
165
177
|
const headerParameters = {};
|
|
166
|
-
if (this.configuration && this.configuration.
|
|
167
|
-
|
|
178
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
179
|
+
const token = this.configuration.accessToken;
|
|
180
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
181
|
+
if (tokenString) {
|
|
182
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
183
|
+
}
|
|
168
184
|
}
|
|
169
185
|
const response = yield this.request({
|
|
170
186
|
path: `/entitlements`,
|
|
@@ -200,8 +216,12 @@ class EntitlementsApi extends runtime.BaseAPI {
|
|
|
200
216
|
const queryParameters = {};
|
|
201
217
|
const headerParameters = {};
|
|
202
218
|
headerParameters['Content-Type'] = 'application/json';
|
|
203
|
-
if (this.configuration && this.configuration.
|
|
204
|
-
|
|
219
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
220
|
+
const token = this.configuration.accessToken;
|
|
221
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
222
|
+
if (tokenString) {
|
|
223
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
224
|
+
}
|
|
205
225
|
}
|
|
206
226
|
const response = yield this.request({
|
|
207
227
|
path: `/partners/{partnerId}/entitlements`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
|
package/dist/apis/FoldersApi.js
CHANGED
|
@@ -41,8 +41,12 @@ class FoldersApi extends runtime.BaseAPI {
|
|
|
41
41
|
const queryParameters = {};
|
|
42
42
|
const headerParameters = {};
|
|
43
43
|
headerParameters['Content-Type'] = 'application/json';
|
|
44
|
-
if (this.configuration && this.configuration.
|
|
45
|
-
|
|
44
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
45
|
+
const token = this.configuration.accessToken;
|
|
46
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
47
|
+
if (tokenString) {
|
|
48
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
49
|
+
}
|
|
46
50
|
}
|
|
47
51
|
const response = yield this.request({
|
|
48
52
|
path: `/folders`,
|
|
@@ -75,8 +79,12 @@ class FoldersApi extends runtime.BaseAPI {
|
|
|
75
79
|
}
|
|
76
80
|
const queryParameters = {};
|
|
77
81
|
const headerParameters = {};
|
|
78
|
-
if (this.configuration && this.configuration.
|
|
79
|
-
|
|
82
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
83
|
+
const token = this.configuration.accessToken;
|
|
84
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
85
|
+
if (tokenString) {
|
|
86
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
87
|
+
}
|
|
80
88
|
}
|
|
81
89
|
const response = yield this.request({
|
|
82
90
|
path: `/folders/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -110,8 +118,12 @@ class FoldersApi extends runtime.BaseAPI {
|
|
|
110
118
|
queryParameters['size'] = requestParameters['size'];
|
|
111
119
|
}
|
|
112
120
|
const headerParameters = {};
|
|
113
|
-
if (this.configuration && this.configuration.
|
|
114
|
-
|
|
121
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
122
|
+
const token = this.configuration.accessToken;
|
|
123
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
124
|
+
if (tokenString) {
|
|
125
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
126
|
+
}
|
|
115
127
|
}
|
|
116
128
|
const response = yield this.request({
|
|
117
129
|
path: `/folders`,
|
|
@@ -143,8 +155,12 @@ class FoldersApi extends runtime.BaseAPI {
|
|
|
143
155
|
}
|
|
144
156
|
const queryParameters = {};
|
|
145
157
|
const headerParameters = {};
|
|
146
|
-
if (this.configuration && this.configuration.
|
|
147
|
-
|
|
158
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
159
|
+
const token = this.configuration.accessToken;
|
|
160
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
161
|
+
if (tokenString) {
|
|
162
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
163
|
+
}
|
|
148
164
|
}
|
|
149
165
|
const response = yield this.request({
|
|
150
166
|
path: `/folders/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -180,8 +196,12 @@ class FoldersApi extends runtime.BaseAPI {
|
|
|
180
196
|
const queryParameters = {};
|
|
181
197
|
const headerParameters = {};
|
|
182
198
|
headerParameters['Content-Type'] = 'application/json';
|
|
183
|
-
if (this.configuration && this.configuration.
|
|
184
|
-
|
|
199
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
200
|
+
const token = this.configuration.accessToken;
|
|
201
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
202
|
+
if (tokenString) {
|
|
203
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
204
|
+
}
|
|
185
205
|
}
|
|
186
206
|
const response = yield this.request({
|
|
187
207
|
path: `/folders/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
package/dist/apis/HealthApi.js
CHANGED
|
@@ -46,8 +46,12 @@ class HealthApi extends runtime.BaseAPI {
|
|
|
46
46
|
queryParameters['includeDbRecord'] = requestParameters['includeDbRecord'];
|
|
47
47
|
}
|
|
48
48
|
const headerParameters = {};
|
|
49
|
-
if (this.configuration && this.configuration.
|
|
50
|
-
|
|
49
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
50
|
+
const token = this.configuration.accessToken;
|
|
51
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
52
|
+
if (tokenString) {
|
|
53
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
54
|
+
}
|
|
51
55
|
}
|
|
52
56
|
const response = yield this.request({
|
|
53
57
|
path: `/health/admin`,
|
|
@@ -76,8 +80,12 @@ class HealthApi extends runtime.BaseAPI {
|
|
|
76
80
|
return __awaiter(this, void 0, void 0, function* () {
|
|
77
81
|
const queryParameters = {};
|
|
78
82
|
const headerParameters = {};
|
|
79
|
-
if (this.configuration && this.configuration.
|
|
80
|
-
|
|
83
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
84
|
+
const token = this.configuration.accessToken;
|
|
85
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
86
|
+
if (tokenString) {
|
|
87
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
88
|
+
}
|
|
81
89
|
}
|
|
82
90
|
const response = yield this.request({
|
|
83
91
|
path: `/health`,
|
|
@@ -41,8 +41,12 @@ class IntegrationsApi extends runtime.BaseAPI {
|
|
|
41
41
|
const queryParameters = {};
|
|
42
42
|
const headerParameters = {};
|
|
43
43
|
headerParameters['Content-Type'] = 'application/json';
|
|
44
|
-
if (this.configuration && this.configuration.
|
|
45
|
-
|
|
44
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
45
|
+
const token = this.configuration.accessToken;
|
|
46
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
47
|
+
if (tokenString) {
|
|
48
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
49
|
+
}
|
|
46
50
|
}
|
|
47
51
|
const response = yield this.request({
|
|
48
52
|
path: `/integrations/connect`,
|
|
@@ -76,8 +80,12 @@ class IntegrationsApi extends runtime.BaseAPI {
|
|
|
76
80
|
const queryParameters = {};
|
|
77
81
|
const headerParameters = {};
|
|
78
82
|
headerParameters['Content-Type'] = 'application/json';
|
|
79
|
-
if (this.configuration && this.configuration.
|
|
80
|
-
|
|
83
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
84
|
+
const token = this.configuration.accessToken;
|
|
85
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
86
|
+
if (tokenString) {
|
|
87
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
88
|
+
}
|
|
81
89
|
}
|
|
82
90
|
const response = yield this.request({
|
|
83
91
|
path: `/integrations`,
|
|
@@ -110,8 +118,12 @@ class IntegrationsApi extends runtime.BaseAPI {
|
|
|
110
118
|
}
|
|
111
119
|
const queryParameters = {};
|
|
112
120
|
const headerParameters = {};
|
|
113
|
-
if (this.configuration && this.configuration.
|
|
114
|
-
|
|
121
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
122
|
+
const token = this.configuration.accessToken;
|
|
123
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
124
|
+
if (tokenString) {
|
|
125
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
126
|
+
}
|
|
115
127
|
}
|
|
116
128
|
const response = yield this.request({
|
|
117
129
|
path: `/integrations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -143,8 +155,12 @@ class IntegrationsApi extends runtime.BaseAPI {
|
|
|
143
155
|
const queryParameters = {};
|
|
144
156
|
const headerParameters = {};
|
|
145
157
|
headerParameters['Content-Type'] = 'application/json';
|
|
146
|
-
if (this.configuration && this.configuration.
|
|
147
|
-
|
|
158
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
159
|
+
const token = this.configuration.accessToken;
|
|
160
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
161
|
+
if (tokenString) {
|
|
162
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
163
|
+
}
|
|
148
164
|
}
|
|
149
165
|
const response = yield this.request({
|
|
150
166
|
path: `/integrations/disconnect`,
|
|
@@ -182,8 +198,12 @@ class IntegrationsApi extends runtime.BaseAPI {
|
|
|
182
198
|
queryParameters['type'] = requestParameters['type'];
|
|
183
199
|
}
|
|
184
200
|
const headerParameters = {};
|
|
185
|
-
if (this.configuration && this.configuration.
|
|
186
|
-
|
|
201
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
202
|
+
const token = this.configuration.accessToken;
|
|
203
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
204
|
+
if (tokenString) {
|
|
205
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
206
|
+
}
|
|
187
207
|
}
|
|
188
208
|
const response = yield this.request({
|
|
189
209
|
path: `/integrations`,
|
|
@@ -215,8 +235,12 @@ class IntegrationsApi extends runtime.BaseAPI {
|
|
|
215
235
|
}
|
|
216
236
|
const queryParameters = {};
|
|
217
237
|
const headerParameters = {};
|
|
218
|
-
if (this.configuration && this.configuration.
|
|
219
|
-
|
|
238
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
239
|
+
const token = this.configuration.accessToken;
|
|
240
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
241
|
+
if (tokenString) {
|
|
242
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
243
|
+
}
|
|
220
244
|
}
|
|
221
245
|
const response = yield this.request({
|
|
222
246
|
path: `/integrations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -252,8 +276,12 @@ class IntegrationsApi extends runtime.BaseAPI {
|
|
|
252
276
|
const queryParameters = {};
|
|
253
277
|
const headerParameters = {};
|
|
254
278
|
headerParameters['Content-Type'] = 'application/json';
|
|
255
|
-
if (this.configuration && this.configuration.
|
|
256
|
-
|
|
279
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
280
|
+
const token = this.configuration.accessToken;
|
|
281
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
282
|
+
if (tokenString) {
|
|
283
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
284
|
+
}
|
|
257
285
|
}
|
|
258
286
|
const response = yield this.request({
|
|
259
287
|
path: `/integrations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -40,8 +40,12 @@ class InvitationsApi extends runtime.BaseAPI {
|
|
|
40
40
|
}
|
|
41
41
|
const queryParameters = {};
|
|
42
42
|
const headerParameters = {};
|
|
43
|
-
if (this.configuration && this.configuration.
|
|
44
|
-
|
|
43
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
44
|
+
const token = this.configuration.accessToken;
|
|
45
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
46
|
+
if (tokenString) {
|
|
47
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
48
|
+
}
|
|
45
49
|
}
|
|
46
50
|
const response = yield this.request({
|
|
47
51
|
path: `/invitations/accept/{orgId}`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
|
|
@@ -73,8 +77,12 @@ class InvitationsApi extends runtime.BaseAPI {
|
|
|
73
77
|
}
|
|
74
78
|
const queryParameters = {};
|
|
75
79
|
const headerParameters = {};
|
|
76
|
-
if (this.configuration && this.configuration.
|
|
77
|
-
|
|
80
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
81
|
+
const token = this.configuration.accessToken;
|
|
82
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
83
|
+
if (tokenString) {
|
|
84
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
85
|
+
}
|
|
78
86
|
}
|
|
79
87
|
const response = yield this.request({
|
|
80
88
|
path: `/invitations/verify/{orgId}`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
|
package/dist/apis/InvoicesApi.js
CHANGED
|
@@ -40,8 +40,12 @@ class InvoicesApi extends runtime.BaseAPI {
|
|
|
40
40
|
const queryParameters = {};
|
|
41
41
|
const headerParameters = {};
|
|
42
42
|
headerParameters['Content-Type'] = 'application/json';
|
|
43
|
-
if (this.configuration && this.configuration.
|
|
44
|
-
|
|
43
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
44
|
+
const token = this.configuration.accessToken;
|
|
45
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
46
|
+
if (tokenString) {
|
|
47
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
48
|
+
}
|
|
45
49
|
}
|
|
46
50
|
const response = yield this.request({
|
|
47
51
|
path: `/invoices`,
|
|
@@ -86,8 +90,12 @@ class InvoicesApi extends runtime.BaseAPI {
|
|
|
86
90
|
queryParameters['offset'] = requestParameters['offset'];
|
|
87
91
|
}
|
|
88
92
|
const headerParameters = {};
|
|
89
|
-
if (this.configuration && this.configuration.
|
|
90
|
-
|
|
93
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
94
|
+
const token = this.configuration.accessToken;
|
|
95
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
96
|
+
if (tokenString) {
|
|
97
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
98
|
+
}
|
|
91
99
|
}
|
|
92
100
|
const response = yield this.request({
|
|
93
101
|
path: `/invoices`,
|
|
@@ -119,8 +127,12 @@ class InvoicesApi extends runtime.BaseAPI {
|
|
|
119
127
|
}
|
|
120
128
|
const queryParameters = {};
|
|
121
129
|
const headerParameters = {};
|
|
122
|
-
if (this.configuration && this.configuration.
|
|
123
|
-
|
|
130
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
131
|
+
const token = this.configuration.accessToken;
|
|
132
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
133
|
+
if (tokenString) {
|
|
134
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
135
|
+
}
|
|
124
136
|
}
|
|
125
137
|
const response = yield this.request({
|
|
126
138
|
path: `/invoices/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -161,8 +173,12 @@ class InvoicesApi extends runtime.BaseAPI {
|
|
|
161
173
|
queryParameters['offset'] = requestParameters['offset'];
|
|
162
174
|
}
|
|
163
175
|
const headerParameters = {};
|
|
164
|
-
if (this.configuration && this.configuration.
|
|
165
|
-
|
|
176
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
177
|
+
const token = this.configuration.accessToken;
|
|
178
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
179
|
+
if (tokenString) {
|
|
180
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
181
|
+
}
|
|
166
182
|
}
|
|
167
183
|
const response = yield this.request({
|
|
168
184
|
path: `/partners/{partnerId}/invoices`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
|
|
@@ -203,8 +219,12 @@ class InvoicesApi extends runtime.BaseAPI {
|
|
|
203
219
|
queryParameters['offset'] = requestParameters['offset'];
|
|
204
220
|
}
|
|
205
221
|
const headerParameters = {};
|
|
206
|
-
if (this.configuration && this.configuration.
|
|
207
|
-
|
|
222
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
223
|
+
const token = this.configuration.accessToken;
|
|
224
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
225
|
+
if (tokenString) {
|
|
226
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
227
|
+
}
|
|
208
228
|
}
|
|
209
229
|
const response = yield this.request({
|
|
210
230
|
path: `/users/{userId}/invoices`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
@@ -240,8 +260,12 @@ class InvoicesApi extends runtime.BaseAPI {
|
|
|
240
260
|
const queryParameters = {};
|
|
241
261
|
const headerParameters = {};
|
|
242
262
|
headerParameters['Content-Type'] = 'application/json';
|
|
243
|
-
if (this.configuration && this.configuration.
|
|
244
|
-
|
|
263
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
264
|
+
const token = this.configuration.accessToken;
|
|
265
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
266
|
+
if (tokenString) {
|
|
267
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
268
|
+
}
|
|
245
269
|
}
|
|
246
270
|
const response = yield this.request({
|
|
247
271
|
path: `/invoices/{id}/status`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|