@snokam/platform-client 1.0.0 → 3.0.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/CHANGELOG.md +349 -0
- package/README.md +7 -3
- package/dist/apis/PlatformClient.d.ts +55 -23
- package/dist/apis/PlatformClient.js +144 -54
- package/dist/esm/apis/PlatformClient.d.ts +55 -23
- package/dist/esm/apis/PlatformClient.js +144 -54
- package/dist/esm/models/index.d.ts +101 -21
- package/dist/models/index.d.ts +101 -21
- package/docs/BusinessConfig.md +1 -0
- package/docs/{SetActiveProviderRequest.md → ChooseProviderRequest.md} +1 -1
- package/docs/IntegrationSummary.md +2 -1
- package/docs/PlatformClient.md +219 -79
- package/docs/ProviderCatalogEntry.md +18 -0
- package/docs/ProviderCatalogResponse.md +14 -0
- package/docs/StudioSanityConfig.md +1 -0
- package/docs/TenantInfo.md +1 -0
- package/package.json +1 -1
- package/src/apis/PlatformClient.ts +182 -72
- package/src/models/index.ts +95 -21
|
@@ -323,6 +323,56 @@ class PlatformClient extends runtime.BaseAPI {
|
|
|
323
323
|
return yield response.value();
|
|
324
324
|
});
|
|
325
325
|
}
|
|
326
|
+
/**
|
|
327
|
+
* Creates request options for chooseProvider without sending the request
|
|
328
|
+
*/
|
|
329
|
+
chooseProviderRequestOpts(requestParameters) {
|
|
330
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
331
|
+
if (requestParameters['id'] == null) {
|
|
332
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling chooseProvider().');
|
|
333
|
+
}
|
|
334
|
+
if (requestParameters['chooseProviderRequest'] == null) {
|
|
335
|
+
throw new runtime.RequiredError('chooseProviderRequest', 'Required parameter "chooseProviderRequest" was null or undefined when calling chooseProvider().');
|
|
336
|
+
}
|
|
337
|
+
const queryParameters = {};
|
|
338
|
+
const headerParameters = {};
|
|
339
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
340
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
341
|
+
// oauth required
|
|
342
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("Implicit", []);
|
|
343
|
+
}
|
|
344
|
+
let urlPath = `/v1.0/protected/businesses/{id}/integrations/chosen`;
|
|
345
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
346
|
+
return {
|
|
347
|
+
path: urlPath,
|
|
348
|
+
method: 'PUT',
|
|
349
|
+
headers: headerParameters,
|
|
350
|
+
query: queryParameters,
|
|
351
|
+
body: requestParameters['chooseProviderRequest'],
|
|
352
|
+
};
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* When a capability has several providers (e.g. PowerOffice vs Tripletex, Coinbase API-key vs OAuth), selects which one the business uses.
|
|
357
|
+
* Choose the active provider for a capability
|
|
358
|
+
*/
|
|
359
|
+
chooseProviderRaw(requestParameters, initOverrides) {
|
|
360
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
361
|
+
const requestOptions = yield this.chooseProviderRequestOpts(requestParameters);
|
|
362
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
363
|
+
return new runtime.JSONApiResponse(response);
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* When a capability has several providers (e.g. PowerOffice vs Tripletex, Coinbase API-key vs OAuth), selects which one the business uses.
|
|
368
|
+
* Choose the active provider for a capability
|
|
369
|
+
*/
|
|
370
|
+
chooseProvider(requestParameters, initOverrides) {
|
|
371
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
372
|
+
const response = yield this.chooseProviderRaw(requestParameters, initOverrides);
|
|
373
|
+
return yield response.value();
|
|
374
|
+
});
|
|
375
|
+
}
|
|
326
376
|
/**
|
|
327
377
|
* Creates request options for connectTenant without sending the request
|
|
328
378
|
*/
|
|
@@ -836,6 +886,55 @@ class PlatformClient extends runtime.BaseAPI {
|
|
|
836
886
|
yield this.disableCredentialRaw(requestParameters, initOverrides);
|
|
837
887
|
});
|
|
838
888
|
}
|
|
889
|
+
/**
|
|
890
|
+
* Creates request options for disconnectIntegration without sending the request
|
|
891
|
+
*/
|
|
892
|
+
disconnectIntegrationRequestOpts(requestParameters) {
|
|
893
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
894
|
+
if (requestParameters['id'] == null) {
|
|
895
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling disconnectIntegration().');
|
|
896
|
+
}
|
|
897
|
+
if (requestParameters['key'] == null) {
|
|
898
|
+
throw new runtime.RequiredError('key', 'Required parameter "key" was null or undefined when calling disconnectIntegration().');
|
|
899
|
+
}
|
|
900
|
+
const queryParameters = {};
|
|
901
|
+
const headerParameters = {};
|
|
902
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
903
|
+
// oauth required
|
|
904
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("Implicit", []);
|
|
905
|
+
}
|
|
906
|
+
let urlPath = `/v1.0/protected/businesses/{id}/integrations/{key}`;
|
|
907
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
908
|
+
urlPath = urlPath.replace('{key}', encodeURIComponent(String(requestParameters['key'])));
|
|
909
|
+
return {
|
|
910
|
+
path: urlPath,
|
|
911
|
+
method: 'DELETE',
|
|
912
|
+
headers: headerParameters,
|
|
913
|
+
query: queryParameters,
|
|
914
|
+
};
|
|
915
|
+
});
|
|
916
|
+
}
|
|
917
|
+
/**
|
|
918
|
+
* Deletes every secret the integration stores for this business — including the OAuth refresh token and cached access token — and clears the capability\'s provider choice when it pointed at this integration. Settings such as base URLs are left alone.
|
|
919
|
+
* Disconnect an integration
|
|
920
|
+
*/
|
|
921
|
+
disconnectIntegrationRaw(requestParameters, initOverrides) {
|
|
922
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
923
|
+
const requestOptions = yield this.disconnectIntegrationRequestOpts(requestParameters);
|
|
924
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
925
|
+
return new runtime.JSONApiResponse(response);
|
|
926
|
+
});
|
|
927
|
+
}
|
|
928
|
+
/**
|
|
929
|
+
* Deletes every secret the integration stores for this business — including the OAuth refresh token and cached access token — and clears the capability\'s provider choice when it pointed at this integration. Settings such as base URLs are left alone.
|
|
930
|
+
* Disconnect an integration
|
|
931
|
+
*/
|
|
932
|
+
disconnectIntegration(requestParameters, initOverrides) {
|
|
933
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
934
|
+
const response = yield this.disconnectIntegrationRaw(requestParameters, initOverrides);
|
|
935
|
+
return yield response.value();
|
|
936
|
+
});
|
|
937
|
+
}
|
|
839
938
|
/**
|
|
840
939
|
* Creates request options for endImpersonation without sending the request
|
|
841
940
|
*/
|
|
@@ -2072,6 +2171,47 @@ class PlatformClient extends runtime.BaseAPI {
|
|
|
2072
2171
|
return yield response.value();
|
|
2073
2172
|
});
|
|
2074
2173
|
}
|
|
2174
|
+
/**
|
|
2175
|
+
* Creates request options for getProviderCatalog without sending the request
|
|
2176
|
+
*/
|
|
2177
|
+
getProviderCatalogRequestOpts() {
|
|
2178
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2179
|
+
const queryParameters = {};
|
|
2180
|
+
const headerParameters = {};
|
|
2181
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2182
|
+
// oauth required
|
|
2183
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("Implicit", []);
|
|
2184
|
+
}
|
|
2185
|
+
let urlPath = `/v1.0/protected/catalog/providers`;
|
|
2186
|
+
return {
|
|
2187
|
+
path: urlPath,
|
|
2188
|
+
method: 'GET',
|
|
2189
|
+
headers: headerParameters,
|
|
2190
|
+
query: queryParameters,
|
|
2191
|
+
};
|
|
2192
|
+
});
|
|
2193
|
+
}
|
|
2194
|
+
/**
|
|
2195
|
+
* Returns the global, platform-owned provider brand catalog (key, capability, title, logo, description). Single source of truth for provider branding across tenants.
|
|
2196
|
+
* List provider brand catalog
|
|
2197
|
+
*/
|
|
2198
|
+
getProviderCatalogRaw(initOverrides) {
|
|
2199
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2200
|
+
const requestOptions = yield this.getProviderCatalogRequestOpts();
|
|
2201
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
2202
|
+
return new runtime.JSONApiResponse(response);
|
|
2203
|
+
});
|
|
2204
|
+
}
|
|
2205
|
+
/**
|
|
2206
|
+
* Returns the global, platform-owned provider brand catalog (key, capability, title, logo, description). Single source of truth for provider branding across tenants.
|
|
2207
|
+
* List provider brand catalog
|
|
2208
|
+
*/
|
|
2209
|
+
getProviderCatalog(initOverrides) {
|
|
2210
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2211
|
+
const response = yield this.getProviderCatalogRaw(initOverrides);
|
|
2212
|
+
return yield response.value();
|
|
2213
|
+
});
|
|
2214
|
+
}
|
|
2075
2215
|
/**
|
|
2076
2216
|
* Creates request options for getProvisioningStatus without sending the request
|
|
2077
2217
|
*/
|
|
@@ -4478,8 +4618,8 @@ class PlatformClient extends runtime.BaseAPI {
|
|
|
4478
4618
|
});
|
|
4479
4619
|
}
|
|
4480
4620
|
/**
|
|
4481
|
-
* Returns the non-secret Sanity project id and dataset a studio should point at for the given host. A tenant host returns that tenant\'s project; a host that belongs to no business (the platform host) returns the shared platform project. No read/write token is returned — the studio authenticates the user via Sanity login — so this is a public endpoint safe to call from a browser.
|
|
4482
|
-
* Resolve the Sanity Studio project/dataset for a host
|
|
4621
|
+
* Returns the non-secret Sanity project id and dataset a studio should point at for the given host, plus that tenant\'s frontend app URLs so document \'Vis side\' links resolve per tenant. A tenant host returns that tenant\'s project; a host that belongs to no business (the platform host) returns the shared platform project and no app URLs. No read/write token is returned — the studio authenticates the user via Sanity login — so this is a public endpoint safe to call from a browser.
|
|
4622
|
+
* Resolve the Sanity Studio project/dataset and frontend URLs for a host
|
|
4483
4623
|
*/
|
|
4484
4624
|
resolveStudioSanityConfigRaw(requestParameters, initOverrides) {
|
|
4485
4625
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4489,8 +4629,8 @@ class PlatformClient extends runtime.BaseAPI {
|
|
|
4489
4629
|
});
|
|
4490
4630
|
}
|
|
4491
4631
|
/**
|
|
4492
|
-
* Returns the non-secret Sanity project id and dataset a studio should point at for the given host. A tenant host returns that tenant\'s project; a host that belongs to no business (the platform host) returns the shared platform project. No read/write token is returned — the studio authenticates the user via Sanity login — so this is a public endpoint safe to call from a browser.
|
|
4493
|
-
* Resolve the Sanity Studio project/dataset for a host
|
|
4632
|
+
* Returns the non-secret Sanity project id and dataset a studio should point at for the given host, plus that tenant\'s frontend app URLs so document \'Vis side\' links resolve per tenant. A tenant host returns that tenant\'s project; a host that belongs to no business (the platform host) returns the shared platform project and no app URLs. No read/write token is returned — the studio authenticates the user via Sanity login — so this is a public endpoint safe to call from a browser.
|
|
4633
|
+
* Resolve the Sanity Studio project/dataset and frontend URLs for a host
|
|
4494
4634
|
*/
|
|
4495
4635
|
resolveStudioSanityConfig(requestParameters, initOverrides) {
|
|
4496
4636
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4838,56 +4978,6 @@ class PlatformClient extends runtime.BaseAPI {
|
|
|
4838
4978
|
yield this.setAccountingReinvoiceProductRaw(requestParameters, initOverrides);
|
|
4839
4979
|
});
|
|
4840
4980
|
}
|
|
4841
|
-
/**
|
|
4842
|
-
* Creates request options for setActiveProvider without sending the request
|
|
4843
|
-
*/
|
|
4844
|
-
setActiveProviderRequestOpts(requestParameters) {
|
|
4845
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4846
|
-
if (requestParameters['id'] == null) {
|
|
4847
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling setActiveProvider().');
|
|
4848
|
-
}
|
|
4849
|
-
if (requestParameters['setActiveProviderRequest'] == null) {
|
|
4850
|
-
throw new runtime.RequiredError('setActiveProviderRequest', 'Required parameter "setActiveProviderRequest" was null or undefined when calling setActiveProvider().');
|
|
4851
|
-
}
|
|
4852
|
-
const queryParameters = {};
|
|
4853
|
-
const headerParameters = {};
|
|
4854
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
4855
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
4856
|
-
// oauth required
|
|
4857
|
-
headerParameters["Authorization"] = yield this.configuration.accessToken("Implicit", []);
|
|
4858
|
-
}
|
|
4859
|
-
let urlPath = `/v1.0/protected/businesses/{id}/integrations/active`;
|
|
4860
|
-
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
4861
|
-
return {
|
|
4862
|
-
path: urlPath,
|
|
4863
|
-
method: 'PUT',
|
|
4864
|
-
headers: headerParameters,
|
|
4865
|
-
query: queryParameters,
|
|
4866
|
-
body: requestParameters['setActiveProviderRequest'],
|
|
4867
|
-
};
|
|
4868
|
-
});
|
|
4869
|
-
}
|
|
4870
|
-
/**
|
|
4871
|
-
* When a capability has several providers (e.g. PowerOffice vs Tripletex, Coinbase API-key vs OAuth), selects which one the business uses.
|
|
4872
|
-
* Choose the active provider for a capability
|
|
4873
|
-
*/
|
|
4874
|
-
setActiveProviderRaw(requestParameters, initOverrides) {
|
|
4875
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4876
|
-
const requestOptions = yield this.setActiveProviderRequestOpts(requestParameters);
|
|
4877
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
4878
|
-
return new runtime.JSONApiResponse(response);
|
|
4879
|
-
});
|
|
4880
|
-
}
|
|
4881
|
-
/**
|
|
4882
|
-
* When a capability has several providers (e.g. PowerOffice vs Tripletex, Coinbase API-key vs OAuth), selects which one the business uses.
|
|
4883
|
-
* Choose the active provider for a capability
|
|
4884
|
-
*/
|
|
4885
|
-
setActiveProvider(requestParameters, initOverrides) {
|
|
4886
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4887
|
-
const response = yield this.setActiveProviderRaw(requestParameters, initOverrides);
|
|
4888
|
-
return yield response.value();
|
|
4889
|
-
});
|
|
4890
|
-
}
|
|
4891
4981
|
/**
|
|
4892
4982
|
* Creates request options for setBusinessEmployeePhoto without sending the request
|
|
4893
4983
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ActivateRequest, ActivateResult, AddCustomDomainRequest, ApiTokenSummary, ApiTokenVerifyResult, AppCatalogEntry, AppModule, ApproveDeviceRequest, BillingPaymentMethod, BillingSessionRequest, BillingSessionResponse, BridgeWebhookResult, Business, BusinessAccess, BusinessHealth, Capability, CreateApiTokenRequest, CreateUserRequest, CreatedApiToken, CredentialSummary, CustomDomainProvisioning, DevicePairRequestBody, DevicePairing, DevicePairingStatus, DevicePollRequestBody, DeviceScreen, DirectoryGroupsResponse, DirectoryLicensesResponse, DirectoryMailbox, DirectoryServicePrincipalsResponse, EmployeeSettings, EmployeeSystemAccess, EmployeeSystemConfig, FacebookAccount, GitHubRepo, GoogleAnalyticsProperty, GoogleAnalyticsSelection, ImpersonationHistoryEntry, IntegrationCheckResult, IntegrationSummary, InviteCredentialRequest, InvoiceBasis, LoginConfig, MeApp, MeterEnforcementDecision, OAuthAccessTokenResponse, OAuthStartResponse, OlafApiKeyResponse, OlafTeamsSettings, OnboardBusinessRequest, OnboardingConfig, OnboardingStatus, PasswordLoginRequest, PasswordLoginResult, PatchBusinessRequest, PatchEmployee, PendingDevicePreview, PlanInfo, PlatformIntegration, PlatformSanityConfig, PlatformSecretStatus, PowerOfficeConnectResponse, PowerOfficeProduct, PowerOfficeProductsResponse, PowerOfficeProject, PowerOfficeProjectsResponse, ProtectedEmployee, RecordImpersonationActivityRequest, RenameDeviceRequest, ResetConfirmRequest, ResetRequest, RevokeRequest, ScopeDefinition, SessionBootstrapRequest,
|
|
13
|
+
import type { ActivateRequest, ActivateResult, AddCustomDomainRequest, ApiTokenSummary, ApiTokenVerifyResult, AppCatalogEntry, AppModule, ApproveDeviceRequest, BillingPaymentMethod, BillingSessionRequest, BillingSessionResponse, BridgeWebhookResult, Business, BusinessAccess, BusinessHealth, Capability, ChooseProviderRequest, CreateApiTokenRequest, CreateUserRequest, CreatedApiToken, CredentialSummary, CustomDomainProvisioning, DevicePairRequestBody, DevicePairing, DevicePairingStatus, DevicePollRequestBody, DeviceScreen, DirectoryGroupsResponse, DirectoryLicensesResponse, DirectoryMailbox, DirectoryServicePrincipalsResponse, EmployeeSettings, EmployeeSystemAccess, EmployeeSystemConfig, FacebookAccount, GitHubRepo, GoogleAnalyticsProperty, GoogleAnalyticsSelection, ImpersonationHistoryEntry, IntegrationCheckResult, IntegrationSummary, InviteCredentialRequest, InvoiceBasis, LoginConfig, MeApp, MeterEnforcementDecision, OAuthAccessTokenResponse, OAuthStartResponse, OlafApiKeyResponse, OlafTeamsSettings, OnboardBusinessRequest, OnboardingConfig, OnboardingStatus, PasswordLoginRequest, PasswordLoginResult, PatchBusinessRequest, PatchEmployee, PendingDevicePreview, PlanInfo, PlatformIntegration, PlatformSanityConfig, PlatformSecretStatus, PowerOfficeConnectResponse, PowerOfficeProduct, PowerOfficeProductsResponse, PowerOfficeProject, PowerOfficeProjectsResponse, ProtectedEmployee, ProviderCatalogResponse, RecordImpersonationActivityRequest, RenameDeviceRequest, ResetConfirmRequest, ResetRequest, RevokeRequest, ScopeDefinition, SessionBootstrapRequest, SetFacebookAccountRequest, SetGoogleAnalyticsPropertyRequest, SetPlatformSecretRequest, SetScopeGrantsRequest, SetWorkReposRequest, SetWorkspaceRepoRequest, SignupConfig, SignupRequest, SignupResult, SsoExchangeRequest, StartImpersonationRequest, StartImpersonationResult, StudioSanityConfig, TeamsAcsTokenResponse, TeamsAuthStateResponse, TenantInfo, TenantSanityCredentials, TokenExchangeRequest, TokenExchangeResult, TokenReconciliationReport, TotpEnrollRequest, TotpEnrollResult, UpdateAppsRequest, UpdateSecretsRequest, UsageDailySeries, UsageEventsRequest, UsageRollup, UsageSummary, VerifyApiTokenRequest, WorkReposSelection, WorkspaceRepoSelection } from '../models/index';
|
|
14
14
|
export interface AddCustomDomainOperationRequest {
|
|
15
15
|
id: string;
|
|
16
16
|
addCustomDomainRequest: AddCustomDomainRequest;
|
|
@@ -35,6 +35,10 @@ export interface CheckIntegrationRequest {
|
|
|
35
35
|
export interface CheckPlatformIntegrationRequest {
|
|
36
36
|
key: string;
|
|
37
37
|
}
|
|
38
|
+
export interface ChooseProviderOperationRequest {
|
|
39
|
+
id: string;
|
|
40
|
+
chooseProviderRequest: ChooseProviderRequest;
|
|
41
|
+
}
|
|
38
42
|
export interface ConnectTenantRequest {
|
|
39
43
|
id: string;
|
|
40
44
|
}
|
|
@@ -74,6 +78,10 @@ export interface DisableCredentialRequest {
|
|
|
74
78
|
id: string;
|
|
75
79
|
credentialId: string;
|
|
76
80
|
}
|
|
81
|
+
export interface DisconnectIntegrationRequest {
|
|
82
|
+
id: string;
|
|
83
|
+
key: string;
|
|
84
|
+
}
|
|
77
85
|
export interface EndImpersonationRequest {
|
|
78
86
|
tokenId: string;
|
|
79
87
|
}
|
|
@@ -311,10 +319,6 @@ export interface SetAccountingReinvoiceProductRequest {
|
|
|
311
319
|
id: string;
|
|
312
320
|
powerOfficeProduct: PowerOfficeProduct;
|
|
313
321
|
}
|
|
314
|
-
export interface SetActiveProviderOperationRequest {
|
|
315
|
-
id: string;
|
|
316
|
-
setActiveProviderRequest: SetActiveProviderRequest;
|
|
317
|
-
}
|
|
318
322
|
export interface SetBusinessEmployeePhotoRequest {
|
|
319
323
|
id: string;
|
|
320
324
|
employeeId: string;
|
|
@@ -481,6 +485,20 @@ export declare class PlatformClient extends runtime.BaseAPI {
|
|
|
481
485
|
* Live-probe a platform integration
|
|
482
486
|
*/
|
|
483
487
|
checkPlatformIntegration(requestParameters: CheckPlatformIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationCheckResult>;
|
|
488
|
+
/**
|
|
489
|
+
* Creates request options for chooseProvider without sending the request
|
|
490
|
+
*/
|
|
491
|
+
chooseProviderRequestOpts(requestParameters: ChooseProviderOperationRequest): Promise<runtime.RequestOpts>;
|
|
492
|
+
/**
|
|
493
|
+
* When a capability has several providers (e.g. PowerOffice vs Tripletex, Coinbase API-key vs OAuth), selects which one the business uses.
|
|
494
|
+
* Choose the active provider for a capability
|
|
495
|
+
*/
|
|
496
|
+
chooseProviderRaw(requestParameters: ChooseProviderOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Business>>;
|
|
497
|
+
/**
|
|
498
|
+
* When a capability has several providers (e.g. PowerOffice vs Tripletex, Coinbase API-key vs OAuth), selects which one the business uses.
|
|
499
|
+
* Choose the active provider for a capability
|
|
500
|
+
*/
|
|
501
|
+
chooseProvider(requestParameters: ChooseProviderOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Business>;
|
|
484
502
|
/**
|
|
485
503
|
* Creates request options for connectTenant without sending the request
|
|
486
504
|
*/
|
|
@@ -635,6 +653,20 @@ export declare class PlatformClient extends runtime.BaseAPI {
|
|
|
635
653
|
* Disable a password credential
|
|
636
654
|
*/
|
|
637
655
|
disableCredential(requestParameters: DisableCredentialRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
656
|
+
/**
|
|
657
|
+
* Creates request options for disconnectIntegration without sending the request
|
|
658
|
+
*/
|
|
659
|
+
disconnectIntegrationRequestOpts(requestParameters: DisconnectIntegrationRequest): Promise<runtime.RequestOpts>;
|
|
660
|
+
/**
|
|
661
|
+
* Deletes every secret the integration stores for this business — including the OAuth refresh token and cached access token — and clears the capability\'s provider choice when it pointed at this integration. Settings such as base URLs are left alone.
|
|
662
|
+
* Disconnect an integration
|
|
663
|
+
*/
|
|
664
|
+
disconnectIntegrationRaw(requestParameters: DisconnectIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Business>>;
|
|
665
|
+
/**
|
|
666
|
+
* Deletes every secret the integration stores for this business — including the OAuth refresh token and cached access token — and clears the capability\'s provider choice when it pointed at this integration. Settings such as base URLs are left alone.
|
|
667
|
+
* Disconnect an integration
|
|
668
|
+
*/
|
|
669
|
+
disconnectIntegration(requestParameters: DisconnectIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Business>;
|
|
638
670
|
/**
|
|
639
671
|
* Creates request options for endImpersonation without sending the request
|
|
640
672
|
*/
|
|
@@ -1027,6 +1059,20 @@ export declare class PlatformClient extends runtime.BaseAPI {
|
|
|
1027
1059
|
* List shared platform secrets
|
|
1028
1060
|
*/
|
|
1029
1061
|
getPlatformSecrets(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PlatformSecretStatus>>;
|
|
1062
|
+
/**
|
|
1063
|
+
* Creates request options for getProviderCatalog without sending the request
|
|
1064
|
+
*/
|
|
1065
|
+
getProviderCatalogRequestOpts(): Promise<runtime.RequestOpts>;
|
|
1066
|
+
/**
|
|
1067
|
+
* Returns the global, platform-owned provider brand catalog (key, capability, title, logo, description). Single source of truth for provider branding across tenants.
|
|
1068
|
+
* List provider brand catalog
|
|
1069
|
+
*/
|
|
1070
|
+
getProviderCatalogRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProviderCatalogResponse>>;
|
|
1071
|
+
/**
|
|
1072
|
+
* Returns the global, platform-owned provider brand catalog (key, capability, title, logo, description). Single source of truth for provider branding across tenants.
|
|
1073
|
+
* List provider brand catalog
|
|
1074
|
+
*/
|
|
1075
|
+
getProviderCatalog(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProviderCatalogResponse>;
|
|
1030
1076
|
/**
|
|
1031
1077
|
* Creates request options for getProvisioningStatus without sending the request
|
|
1032
1078
|
*/
|
|
@@ -1782,13 +1828,13 @@ export declare class PlatformClient extends runtime.BaseAPI {
|
|
|
1782
1828
|
*/
|
|
1783
1829
|
resolveStudioSanityConfigRequestOpts(requestParameters: ResolveStudioSanityConfigRequest): Promise<runtime.RequestOpts>;
|
|
1784
1830
|
/**
|
|
1785
|
-
* Returns the non-secret Sanity project id and dataset a studio should point at for the given host. A tenant host returns that tenant\'s project; a host that belongs to no business (the platform host) returns the shared platform project. No read/write token is returned — the studio authenticates the user via Sanity login — so this is a public endpoint safe to call from a browser.
|
|
1786
|
-
* Resolve the Sanity Studio project/dataset for a host
|
|
1831
|
+
* Returns the non-secret Sanity project id and dataset a studio should point at for the given host, plus that tenant\'s frontend app URLs so document \'Vis side\' links resolve per tenant. A tenant host returns that tenant\'s project; a host that belongs to no business (the platform host) returns the shared platform project and no app URLs. No read/write token is returned — the studio authenticates the user via Sanity login — so this is a public endpoint safe to call from a browser.
|
|
1832
|
+
* Resolve the Sanity Studio project/dataset and frontend URLs for a host
|
|
1787
1833
|
*/
|
|
1788
1834
|
resolveStudioSanityConfigRaw(requestParameters: ResolveStudioSanityConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StudioSanityConfig>>;
|
|
1789
1835
|
/**
|
|
1790
|
-
* Returns the non-secret Sanity project id and dataset a studio should point at for the given host. A tenant host returns that tenant\'s project; a host that belongs to no business (the platform host) returns the shared platform project. No read/write token is returned — the studio authenticates the user via Sanity login — so this is a public endpoint safe to call from a browser.
|
|
1791
|
-
* Resolve the Sanity Studio project/dataset for a host
|
|
1836
|
+
* Returns the non-secret Sanity project id and dataset a studio should point at for the given host, plus that tenant\'s frontend app URLs so document \'Vis side\' links resolve per tenant. A tenant host returns that tenant\'s project; a host that belongs to no business (the platform host) returns the shared platform project and no app URLs. No read/write token is returned — the studio authenticates the user via Sanity login — so this is a public endpoint safe to call from a browser.
|
|
1837
|
+
* Resolve the Sanity Studio project/dataset and frontend URLs for a host
|
|
1792
1838
|
*/
|
|
1793
1839
|
resolveStudioSanityConfig(requestParameters: ResolveStudioSanityConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StudioSanityConfig>;
|
|
1794
1840
|
/**
|
|
@@ -1887,20 +1933,6 @@ export declare class PlatformClient extends runtime.BaseAPI {
|
|
|
1887
1933
|
* Set the re-invoice product code
|
|
1888
1934
|
*/
|
|
1889
1935
|
setAccountingReinvoiceProduct(requestParameters: SetAccountingReinvoiceProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1890
|
-
/**
|
|
1891
|
-
* Creates request options for setActiveProvider without sending the request
|
|
1892
|
-
*/
|
|
1893
|
-
setActiveProviderRequestOpts(requestParameters: SetActiveProviderOperationRequest): Promise<runtime.RequestOpts>;
|
|
1894
|
-
/**
|
|
1895
|
-
* When a capability has several providers (e.g. PowerOffice vs Tripletex, Coinbase API-key vs OAuth), selects which one the business uses.
|
|
1896
|
-
* Choose the active provider for a capability
|
|
1897
|
-
*/
|
|
1898
|
-
setActiveProviderRaw(requestParameters: SetActiveProviderOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Business>>;
|
|
1899
|
-
/**
|
|
1900
|
-
* When a capability has several providers (e.g. PowerOffice vs Tripletex, Coinbase API-key vs OAuth), selects which one the business uses.
|
|
1901
|
-
* Choose the active provider for a capability
|
|
1902
|
-
*/
|
|
1903
|
-
setActiveProvider(requestParameters: SetActiveProviderOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Business>;
|
|
1904
1936
|
/**
|
|
1905
1937
|
* Creates request options for setBusinessEmployeePhoto without sending the request
|
|
1906
1938
|
*/
|
|
@@ -320,6 +320,56 @@ export class PlatformClient extends runtime.BaseAPI {
|
|
|
320
320
|
return yield response.value();
|
|
321
321
|
});
|
|
322
322
|
}
|
|
323
|
+
/**
|
|
324
|
+
* Creates request options for chooseProvider without sending the request
|
|
325
|
+
*/
|
|
326
|
+
chooseProviderRequestOpts(requestParameters) {
|
|
327
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
328
|
+
if (requestParameters['id'] == null) {
|
|
329
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling chooseProvider().');
|
|
330
|
+
}
|
|
331
|
+
if (requestParameters['chooseProviderRequest'] == null) {
|
|
332
|
+
throw new runtime.RequiredError('chooseProviderRequest', 'Required parameter "chooseProviderRequest" was null or undefined when calling chooseProvider().');
|
|
333
|
+
}
|
|
334
|
+
const queryParameters = {};
|
|
335
|
+
const headerParameters = {};
|
|
336
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
337
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
338
|
+
// oauth required
|
|
339
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("Implicit", []);
|
|
340
|
+
}
|
|
341
|
+
let urlPath = `/v1.0/protected/businesses/{id}/integrations/chosen`;
|
|
342
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
343
|
+
return {
|
|
344
|
+
path: urlPath,
|
|
345
|
+
method: 'PUT',
|
|
346
|
+
headers: headerParameters,
|
|
347
|
+
query: queryParameters,
|
|
348
|
+
body: requestParameters['chooseProviderRequest'],
|
|
349
|
+
};
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* When a capability has several providers (e.g. PowerOffice vs Tripletex, Coinbase API-key vs OAuth), selects which one the business uses.
|
|
354
|
+
* Choose the active provider for a capability
|
|
355
|
+
*/
|
|
356
|
+
chooseProviderRaw(requestParameters, initOverrides) {
|
|
357
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
358
|
+
const requestOptions = yield this.chooseProviderRequestOpts(requestParameters);
|
|
359
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
360
|
+
return new runtime.JSONApiResponse(response);
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* When a capability has several providers (e.g. PowerOffice vs Tripletex, Coinbase API-key vs OAuth), selects which one the business uses.
|
|
365
|
+
* Choose the active provider for a capability
|
|
366
|
+
*/
|
|
367
|
+
chooseProvider(requestParameters, initOverrides) {
|
|
368
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
369
|
+
const response = yield this.chooseProviderRaw(requestParameters, initOverrides);
|
|
370
|
+
return yield response.value();
|
|
371
|
+
});
|
|
372
|
+
}
|
|
323
373
|
/**
|
|
324
374
|
* Creates request options for connectTenant without sending the request
|
|
325
375
|
*/
|
|
@@ -833,6 +883,55 @@ export class PlatformClient extends runtime.BaseAPI {
|
|
|
833
883
|
yield this.disableCredentialRaw(requestParameters, initOverrides);
|
|
834
884
|
});
|
|
835
885
|
}
|
|
886
|
+
/**
|
|
887
|
+
* Creates request options for disconnectIntegration without sending the request
|
|
888
|
+
*/
|
|
889
|
+
disconnectIntegrationRequestOpts(requestParameters) {
|
|
890
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
891
|
+
if (requestParameters['id'] == null) {
|
|
892
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling disconnectIntegration().');
|
|
893
|
+
}
|
|
894
|
+
if (requestParameters['key'] == null) {
|
|
895
|
+
throw new runtime.RequiredError('key', 'Required parameter "key" was null or undefined when calling disconnectIntegration().');
|
|
896
|
+
}
|
|
897
|
+
const queryParameters = {};
|
|
898
|
+
const headerParameters = {};
|
|
899
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
900
|
+
// oauth required
|
|
901
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("Implicit", []);
|
|
902
|
+
}
|
|
903
|
+
let urlPath = `/v1.0/protected/businesses/{id}/integrations/{key}`;
|
|
904
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
905
|
+
urlPath = urlPath.replace('{key}', encodeURIComponent(String(requestParameters['key'])));
|
|
906
|
+
return {
|
|
907
|
+
path: urlPath,
|
|
908
|
+
method: 'DELETE',
|
|
909
|
+
headers: headerParameters,
|
|
910
|
+
query: queryParameters,
|
|
911
|
+
};
|
|
912
|
+
});
|
|
913
|
+
}
|
|
914
|
+
/**
|
|
915
|
+
* Deletes every secret the integration stores for this business — including the OAuth refresh token and cached access token — and clears the capability\'s provider choice when it pointed at this integration. Settings such as base URLs are left alone.
|
|
916
|
+
* Disconnect an integration
|
|
917
|
+
*/
|
|
918
|
+
disconnectIntegrationRaw(requestParameters, initOverrides) {
|
|
919
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
920
|
+
const requestOptions = yield this.disconnectIntegrationRequestOpts(requestParameters);
|
|
921
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
922
|
+
return new runtime.JSONApiResponse(response);
|
|
923
|
+
});
|
|
924
|
+
}
|
|
925
|
+
/**
|
|
926
|
+
* Deletes every secret the integration stores for this business — including the OAuth refresh token and cached access token — and clears the capability\'s provider choice when it pointed at this integration. Settings such as base URLs are left alone.
|
|
927
|
+
* Disconnect an integration
|
|
928
|
+
*/
|
|
929
|
+
disconnectIntegration(requestParameters, initOverrides) {
|
|
930
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
931
|
+
const response = yield this.disconnectIntegrationRaw(requestParameters, initOverrides);
|
|
932
|
+
return yield response.value();
|
|
933
|
+
});
|
|
934
|
+
}
|
|
836
935
|
/**
|
|
837
936
|
* Creates request options for endImpersonation without sending the request
|
|
838
937
|
*/
|
|
@@ -2069,6 +2168,47 @@ export class PlatformClient extends runtime.BaseAPI {
|
|
|
2069
2168
|
return yield response.value();
|
|
2070
2169
|
});
|
|
2071
2170
|
}
|
|
2171
|
+
/**
|
|
2172
|
+
* Creates request options for getProviderCatalog without sending the request
|
|
2173
|
+
*/
|
|
2174
|
+
getProviderCatalogRequestOpts() {
|
|
2175
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2176
|
+
const queryParameters = {};
|
|
2177
|
+
const headerParameters = {};
|
|
2178
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2179
|
+
// oauth required
|
|
2180
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("Implicit", []);
|
|
2181
|
+
}
|
|
2182
|
+
let urlPath = `/v1.0/protected/catalog/providers`;
|
|
2183
|
+
return {
|
|
2184
|
+
path: urlPath,
|
|
2185
|
+
method: 'GET',
|
|
2186
|
+
headers: headerParameters,
|
|
2187
|
+
query: queryParameters,
|
|
2188
|
+
};
|
|
2189
|
+
});
|
|
2190
|
+
}
|
|
2191
|
+
/**
|
|
2192
|
+
* Returns the global, platform-owned provider brand catalog (key, capability, title, logo, description). Single source of truth for provider branding across tenants.
|
|
2193
|
+
* List provider brand catalog
|
|
2194
|
+
*/
|
|
2195
|
+
getProviderCatalogRaw(initOverrides) {
|
|
2196
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2197
|
+
const requestOptions = yield this.getProviderCatalogRequestOpts();
|
|
2198
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
2199
|
+
return new runtime.JSONApiResponse(response);
|
|
2200
|
+
});
|
|
2201
|
+
}
|
|
2202
|
+
/**
|
|
2203
|
+
* Returns the global, platform-owned provider brand catalog (key, capability, title, logo, description). Single source of truth for provider branding across tenants.
|
|
2204
|
+
* List provider brand catalog
|
|
2205
|
+
*/
|
|
2206
|
+
getProviderCatalog(initOverrides) {
|
|
2207
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2208
|
+
const response = yield this.getProviderCatalogRaw(initOverrides);
|
|
2209
|
+
return yield response.value();
|
|
2210
|
+
});
|
|
2211
|
+
}
|
|
2072
2212
|
/**
|
|
2073
2213
|
* Creates request options for getProvisioningStatus without sending the request
|
|
2074
2214
|
*/
|
|
@@ -4475,8 +4615,8 @@ export class PlatformClient extends runtime.BaseAPI {
|
|
|
4475
4615
|
});
|
|
4476
4616
|
}
|
|
4477
4617
|
/**
|
|
4478
|
-
* Returns the non-secret Sanity project id and dataset a studio should point at for the given host. A tenant host returns that tenant\'s project; a host that belongs to no business (the platform host) returns the shared platform project. No read/write token is returned — the studio authenticates the user via Sanity login — so this is a public endpoint safe to call from a browser.
|
|
4479
|
-
* Resolve the Sanity Studio project/dataset for a host
|
|
4618
|
+
* Returns the non-secret Sanity project id and dataset a studio should point at for the given host, plus that tenant\'s frontend app URLs so document \'Vis side\' links resolve per tenant. A tenant host returns that tenant\'s project; a host that belongs to no business (the platform host) returns the shared platform project and no app URLs. No read/write token is returned — the studio authenticates the user via Sanity login — so this is a public endpoint safe to call from a browser.
|
|
4619
|
+
* Resolve the Sanity Studio project/dataset and frontend URLs for a host
|
|
4480
4620
|
*/
|
|
4481
4621
|
resolveStudioSanityConfigRaw(requestParameters, initOverrides) {
|
|
4482
4622
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4486,8 +4626,8 @@ export class PlatformClient extends runtime.BaseAPI {
|
|
|
4486
4626
|
});
|
|
4487
4627
|
}
|
|
4488
4628
|
/**
|
|
4489
|
-
* Returns the non-secret Sanity project id and dataset a studio should point at for the given host. A tenant host returns that tenant\'s project; a host that belongs to no business (the platform host) returns the shared platform project. No read/write token is returned — the studio authenticates the user via Sanity login — so this is a public endpoint safe to call from a browser.
|
|
4490
|
-
* Resolve the Sanity Studio project/dataset for a host
|
|
4629
|
+
* Returns the non-secret Sanity project id and dataset a studio should point at for the given host, plus that tenant\'s frontend app URLs so document \'Vis side\' links resolve per tenant. A tenant host returns that tenant\'s project; a host that belongs to no business (the platform host) returns the shared platform project and no app URLs. No read/write token is returned — the studio authenticates the user via Sanity login — so this is a public endpoint safe to call from a browser.
|
|
4630
|
+
* Resolve the Sanity Studio project/dataset and frontend URLs for a host
|
|
4491
4631
|
*/
|
|
4492
4632
|
resolveStudioSanityConfig(requestParameters, initOverrides) {
|
|
4493
4633
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4835,56 +4975,6 @@ export class PlatformClient extends runtime.BaseAPI {
|
|
|
4835
4975
|
yield this.setAccountingReinvoiceProductRaw(requestParameters, initOverrides);
|
|
4836
4976
|
});
|
|
4837
4977
|
}
|
|
4838
|
-
/**
|
|
4839
|
-
* Creates request options for setActiveProvider without sending the request
|
|
4840
|
-
*/
|
|
4841
|
-
setActiveProviderRequestOpts(requestParameters) {
|
|
4842
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4843
|
-
if (requestParameters['id'] == null) {
|
|
4844
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling setActiveProvider().');
|
|
4845
|
-
}
|
|
4846
|
-
if (requestParameters['setActiveProviderRequest'] == null) {
|
|
4847
|
-
throw new runtime.RequiredError('setActiveProviderRequest', 'Required parameter "setActiveProviderRequest" was null or undefined when calling setActiveProvider().');
|
|
4848
|
-
}
|
|
4849
|
-
const queryParameters = {};
|
|
4850
|
-
const headerParameters = {};
|
|
4851
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
4852
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
4853
|
-
// oauth required
|
|
4854
|
-
headerParameters["Authorization"] = yield this.configuration.accessToken("Implicit", []);
|
|
4855
|
-
}
|
|
4856
|
-
let urlPath = `/v1.0/protected/businesses/{id}/integrations/active`;
|
|
4857
|
-
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
4858
|
-
return {
|
|
4859
|
-
path: urlPath,
|
|
4860
|
-
method: 'PUT',
|
|
4861
|
-
headers: headerParameters,
|
|
4862
|
-
query: queryParameters,
|
|
4863
|
-
body: requestParameters['setActiveProviderRequest'],
|
|
4864
|
-
};
|
|
4865
|
-
});
|
|
4866
|
-
}
|
|
4867
|
-
/**
|
|
4868
|
-
* When a capability has several providers (e.g. PowerOffice vs Tripletex, Coinbase API-key vs OAuth), selects which one the business uses.
|
|
4869
|
-
* Choose the active provider for a capability
|
|
4870
|
-
*/
|
|
4871
|
-
setActiveProviderRaw(requestParameters, initOverrides) {
|
|
4872
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4873
|
-
const requestOptions = yield this.setActiveProviderRequestOpts(requestParameters);
|
|
4874
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
4875
|
-
return new runtime.JSONApiResponse(response);
|
|
4876
|
-
});
|
|
4877
|
-
}
|
|
4878
|
-
/**
|
|
4879
|
-
* When a capability has several providers (e.g. PowerOffice vs Tripletex, Coinbase API-key vs OAuth), selects which one the business uses.
|
|
4880
|
-
* Choose the active provider for a capability
|
|
4881
|
-
*/
|
|
4882
|
-
setActiveProvider(requestParameters, initOverrides) {
|
|
4883
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4884
|
-
const response = yield this.setActiveProviderRaw(requestParameters, initOverrides);
|
|
4885
|
-
return yield response.value();
|
|
4886
|
-
});
|
|
4887
|
-
}
|
|
4888
4978
|
/**
|
|
4889
4979
|
* Creates request options for setBusinessEmployeePhoto without sending the request
|
|
4890
4980
|
*/
|