yellowgrid-api-ts 3.2.108-dev.0 → 3.2.109-dev.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/.openapi-generator/FILES +1 -1
- package/README.md +2 -2
- package/api.ts +75 -75
- package/dist/api.d.ts +38 -38
- package/dist/api.js +83 -83
- package/docs/AccountsApi.md +59 -59
- package/docs/PostSendWelcomeEmailRequest.md +20 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -119,7 +119,6 @@ docs/OrderTotalModel.md
|
|
|
119
119
|
docs/OrderedItemEntity.md
|
|
120
120
|
docs/OrderedItemModel.md
|
|
121
121
|
docs/OrdersApi.md
|
|
122
|
-
docs/PatchSendWelcomeEmailRequest.md
|
|
123
122
|
docs/PatchUpdateAccountCnameRequest.md
|
|
124
123
|
docs/PatchUpdateAccountContactPasswordRequest.md
|
|
125
124
|
docs/PortalAccountModel.md
|
|
@@ -130,6 +129,7 @@ docs/PostAddWebhook200Response.md
|
|
|
130
129
|
docs/PostGetClientCredentialsRequest.md
|
|
131
130
|
docs/PostGetProductForCustomerRequest.md
|
|
132
131
|
docs/PostGetProductRequest.md
|
|
132
|
+
docs/PostSendWelcomeEmailRequest.md
|
|
133
133
|
docs/PostSplitOrderRequest.md
|
|
134
134
|
docs/PriceListItemModel.md
|
|
135
135
|
docs/PricingApi.md
|
package/README.md
CHANGED
|
@@ -61,7 +61,6 @@ Class | Method | HTTP request | Description
|
|
|
61
61
|
*AccountsApi* | [**getGetClientCredentials**](docs/AccountsApi.md#getgetclientcredentials) | **GET** /accounts/me/contacts/credentials | Get user\'s client credentials
|
|
62
62
|
*AccountsApi* | [**getGetCustomerKeys**](docs/AccountsApi.md#getgetcustomerkeys) | **GET** /accounts/me/tcx/keys | Get 3CX Keys
|
|
63
63
|
*AccountsApi* | [**getVerifyEmailAddress**](docs/AccountsApi.md#getverifyemailaddress) | **GET** /accounts/contacts/verify | Verify account email address
|
|
64
|
-
*AccountsApi* | [**patchSendWelcomeEmail**](docs/AccountsApi.md#patchsendwelcomeemail) | **PATCH** /admin/accounts/{id}/email/welcome |
|
|
65
64
|
*AccountsApi* | [**patchSetPortalAccess**](docs/AccountsApi.md#patchsetportalaccess) | **PATCH** /admin/accounts/{id}/portal/access/{state} |
|
|
66
65
|
*AccountsApi* | [**patchSetPrizePromo**](docs/AccountsApi.md#patchsetprizepromo) | **PATCH** /admin/accounts/{id}/prizes/{state} |
|
|
67
66
|
*AccountsApi* | [**patchSetTcxWizardCname**](docs/AccountsApi.md#patchsettcxwizardcname) | **PATCH** /accounts/me/cname |
|
|
@@ -73,6 +72,7 @@ Class | Method | HTTP request | Description
|
|
|
73
72
|
*AccountsApi* | [**postGetClientCredentials**](docs/AccountsApi.md#postgetclientcredentials) | **POST** /accounts/me/contacts/credentials | Create client credentials
|
|
74
73
|
*AccountsApi* | [**postSendEmailVerificationEmail**](docs/AccountsApi.md#postsendemailverificationemail) | **POST** /accounts/contacts/verify/{email} | Send email verification email
|
|
75
74
|
*AccountsApi* | [**postSendPasswordReset**](docs/AccountsApi.md#postsendpasswordreset) | **POST** /accounts/contacts/password/reset | Send password reset email
|
|
75
|
+
*AccountsApi* | [**postSendWelcomeEmail**](docs/AccountsApi.md#postsendwelcomeemail) | **POST** /admin/accounts/{id}/email/welcome |
|
|
76
76
|
*AccountsApi* | [**postSubmitResellerApplication**](docs/AccountsApi.md#postsubmitresellerapplication) | **POST** /accounts/reseller | Submit reseller application
|
|
77
77
|
*AccountsApi* | [**putUpdateAccountContact**](docs/AccountsApi.md#putupdateaccountcontact) | **PUT** /accounts/me/contacts/{email} | Update Account Contact
|
|
78
78
|
*AccountsApi* | [**putUpdateBillingAddress**](docs/AccountsApi.md#putupdatebillingaddress) | **PUT** /admin/accounts/{id}/billing/address |
|
|
@@ -381,7 +381,6 @@ Class | Method | HTTP request | Description
|
|
|
381
381
|
- [OrderTotalModel](docs/OrderTotalModel.md)
|
|
382
382
|
- [OrderedItemEntity](docs/OrderedItemEntity.md)
|
|
383
383
|
- [OrderedItemModel](docs/OrderedItemModel.md)
|
|
384
|
-
- [PatchSendWelcomeEmailRequest](docs/PatchSendWelcomeEmailRequest.md)
|
|
385
384
|
- [PatchUpdateAccountCnameRequest](docs/PatchUpdateAccountCnameRequest.md)
|
|
386
385
|
- [PatchUpdateAccountContactPasswordRequest](docs/PatchUpdateAccountContactPasswordRequest.md)
|
|
387
386
|
- [PortalAccountModel](docs/PortalAccountModel.md)
|
|
@@ -392,6 +391,7 @@ Class | Method | HTTP request | Description
|
|
|
392
391
|
- [PostGetClientCredentialsRequest](docs/PostGetClientCredentialsRequest.md)
|
|
393
392
|
- [PostGetProductForCustomerRequest](docs/PostGetProductForCustomerRequest.md)
|
|
394
393
|
- [PostGetProductRequest](docs/PostGetProductRequest.md)
|
|
394
|
+
- [PostSendWelcomeEmailRequest](docs/PostSendWelcomeEmailRequest.md)
|
|
395
395
|
- [PostSplitOrderRequest](docs/PostSplitOrderRequest.md)
|
|
396
396
|
- [PriceListItemModel](docs/PriceListItemModel.md)
|
|
397
397
|
- [PrinterEntity](docs/PrinterEntity.md)
|
package/api.ts
CHANGED
|
@@ -3899,12 +3899,6 @@ export interface OrderedItemModel {
|
|
|
3899
3899
|
*/
|
|
3900
3900
|
'returnedStock'?: number;
|
|
3901
3901
|
}
|
|
3902
|
-
export interface PatchSendWelcomeEmailRequest {
|
|
3903
|
-
/**
|
|
3904
|
-
* email
|
|
3905
|
-
*/
|
|
3906
|
-
'email'?: string;
|
|
3907
|
-
}
|
|
3908
3902
|
export interface PatchUpdateAccountCnameRequest {
|
|
3909
3903
|
/**
|
|
3910
3904
|
* CNAME
|
|
@@ -4104,6 +4098,12 @@ export interface PostGetProductRequest {
|
|
|
4104
4098
|
*/
|
|
4105
4099
|
'hosting'?: boolean | null;
|
|
4106
4100
|
}
|
|
4101
|
+
export interface PostSendWelcomeEmailRequest {
|
|
4102
|
+
/**
|
|
4103
|
+
* email
|
|
4104
|
+
*/
|
|
4105
|
+
'email'?: string;
|
|
4106
|
+
}
|
|
4107
4107
|
export interface PostSplitOrderRequest {
|
|
4108
4108
|
/**
|
|
4109
4109
|
* Item Ids
|
|
@@ -8215,41 +8215,6 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8215
8215
|
options: localVarRequestOptions,
|
|
8216
8216
|
};
|
|
8217
8217
|
},
|
|
8218
|
-
/**
|
|
8219
|
-
* Send Account Welcome Email
|
|
8220
|
-
* @param {string} id Xero ID
|
|
8221
|
-
* @param {PatchSendWelcomeEmailRequest} [patchSendWelcomeEmailRequest] Email Request
|
|
8222
|
-
* @param {*} [options] Override http request option.
|
|
8223
|
-
* @throws {RequiredError}
|
|
8224
|
-
*/
|
|
8225
|
-
patchSendWelcomeEmail: async (id: string, patchSendWelcomeEmailRequest?: PatchSendWelcomeEmailRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8226
|
-
// verify required parameter 'id' is not null or undefined
|
|
8227
|
-
assertParamExists('patchSendWelcomeEmail', 'id', id)
|
|
8228
|
-
const localVarPath = `/admin/accounts/{id}/email/welcome`
|
|
8229
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
8230
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8231
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8232
|
-
let baseOptions;
|
|
8233
|
-
if (configuration) {
|
|
8234
|
-
baseOptions = configuration.baseOptions;
|
|
8235
|
-
}
|
|
8236
|
-
|
|
8237
|
-
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
8238
|
-
const localVarHeaderParameter = {} as any;
|
|
8239
|
-
const localVarQueryParameter = {} as any;
|
|
8240
|
-
|
|
8241
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8242
|
-
|
|
8243
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8244
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8245
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8246
|
-
localVarRequestOptions.data = serializeDataIfNeeded(patchSendWelcomeEmailRequest, localVarRequestOptions, configuration)
|
|
8247
|
-
|
|
8248
|
-
return {
|
|
8249
|
-
url: toPathString(localVarUrlObj),
|
|
8250
|
-
options: localVarRequestOptions,
|
|
8251
|
-
};
|
|
8252
|
-
},
|
|
8253
8218
|
/**
|
|
8254
8219
|
* Set Account Portal Access
|
|
8255
8220
|
* @param {string} id Xero ID
|
|
@@ -8624,6 +8589,41 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8624
8589
|
options: localVarRequestOptions,
|
|
8625
8590
|
};
|
|
8626
8591
|
},
|
|
8592
|
+
/**
|
|
8593
|
+
* Send Account Welcome Email
|
|
8594
|
+
* @param {string} id Xero ID
|
|
8595
|
+
* @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
|
|
8596
|
+
* @param {*} [options] Override http request option.
|
|
8597
|
+
* @throws {RequiredError}
|
|
8598
|
+
*/
|
|
8599
|
+
postSendWelcomeEmail: async (id: string, postSendWelcomeEmailRequest?: PostSendWelcomeEmailRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8600
|
+
// verify required parameter 'id' is not null or undefined
|
|
8601
|
+
assertParamExists('postSendWelcomeEmail', 'id', id)
|
|
8602
|
+
const localVarPath = `/admin/accounts/{id}/email/welcome`
|
|
8603
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
8604
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8605
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8606
|
+
let baseOptions;
|
|
8607
|
+
if (configuration) {
|
|
8608
|
+
baseOptions = configuration.baseOptions;
|
|
8609
|
+
}
|
|
8610
|
+
|
|
8611
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
8612
|
+
const localVarHeaderParameter = {} as any;
|
|
8613
|
+
const localVarQueryParameter = {} as any;
|
|
8614
|
+
|
|
8615
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8616
|
+
|
|
8617
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8618
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8619
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8620
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postSendWelcomeEmailRequest, localVarRequestOptions, configuration)
|
|
8621
|
+
|
|
8622
|
+
return {
|
|
8623
|
+
url: toPathString(localVarUrlObj),
|
|
8624
|
+
options: localVarRequestOptions,
|
|
8625
|
+
};
|
|
8626
|
+
},
|
|
8627
8627
|
/**
|
|
8628
8628
|
* Submit reseller application
|
|
8629
8629
|
* @summary Submit reseller application
|
|
@@ -8912,19 +8912,6 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
8912
8912
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getVerifyEmailAddress']?.[localVarOperationServerIndex]?.url;
|
|
8913
8913
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8914
8914
|
},
|
|
8915
|
-
/**
|
|
8916
|
-
* Send Account Welcome Email
|
|
8917
|
-
* @param {string} id Xero ID
|
|
8918
|
-
* @param {PatchSendWelcomeEmailRequest} [patchSendWelcomeEmailRequest] Email Request
|
|
8919
|
-
* @param {*} [options] Override http request option.
|
|
8920
|
-
* @throws {RequiredError}
|
|
8921
|
-
*/
|
|
8922
|
-
async patchSendWelcomeEmail(id: string, patchSendWelcomeEmailRequest?: PatchSendWelcomeEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
8923
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.patchSendWelcomeEmail(id, patchSendWelcomeEmailRequest, options);
|
|
8924
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8925
|
-
const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchSendWelcomeEmail']?.[localVarOperationServerIndex]?.url;
|
|
8926
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8927
|
-
},
|
|
8928
8915
|
/**
|
|
8929
8916
|
* Set Account Portal Access
|
|
8930
8917
|
* @param {string} id Xero ID
|
|
@@ -9067,6 +9054,19 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9067
9054
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.postSendPasswordReset']?.[localVarOperationServerIndex]?.url;
|
|
9068
9055
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9069
9056
|
},
|
|
9057
|
+
/**
|
|
9058
|
+
* Send Account Welcome Email
|
|
9059
|
+
* @param {string} id Xero ID
|
|
9060
|
+
* @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
|
|
9061
|
+
* @param {*} [options] Override http request option.
|
|
9062
|
+
* @throws {RequiredError}
|
|
9063
|
+
*/
|
|
9064
|
+
async postSendWelcomeEmail(id: string, postSendWelcomeEmailRequest?: PostSendWelcomeEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
9065
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postSendWelcomeEmail(id, postSendWelcomeEmailRequest, options);
|
|
9066
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9067
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.postSendWelcomeEmail']?.[localVarOperationServerIndex]?.url;
|
|
9068
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9069
|
+
},
|
|
9070
9070
|
/**
|
|
9071
9071
|
* Submit reseller application
|
|
9072
9072
|
* @summary Submit reseller application
|
|
@@ -9230,16 +9230,6 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9230
9230
|
getVerifyEmailAddress(token: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
9231
9231
|
return localVarFp.getVerifyEmailAddress(token, options).then((request) => request(axios, basePath));
|
|
9232
9232
|
},
|
|
9233
|
-
/**
|
|
9234
|
-
* Send Account Welcome Email
|
|
9235
|
-
* @param {string} id Xero ID
|
|
9236
|
-
* @param {PatchSendWelcomeEmailRequest} [patchSendWelcomeEmailRequest] Email Request
|
|
9237
|
-
* @param {*} [options] Override http request option.
|
|
9238
|
-
* @throws {RequiredError}
|
|
9239
|
-
*/
|
|
9240
|
-
patchSendWelcomeEmail(id: string, patchSendWelcomeEmailRequest?: PatchSendWelcomeEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
9241
|
-
return localVarFp.patchSendWelcomeEmail(id, patchSendWelcomeEmailRequest, options).then((request) => request(axios, basePath));
|
|
9242
|
-
},
|
|
9243
9233
|
/**
|
|
9244
9234
|
* Set Account Portal Access
|
|
9245
9235
|
* @param {string} id Xero ID
|
|
@@ -9349,6 +9339,16 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9349
9339
|
postSendPasswordReset(email: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
9350
9340
|
return localVarFp.postSendPasswordReset(email, options).then((request) => request(axios, basePath));
|
|
9351
9341
|
},
|
|
9342
|
+
/**
|
|
9343
|
+
* Send Account Welcome Email
|
|
9344
|
+
* @param {string} id Xero ID
|
|
9345
|
+
* @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
|
|
9346
|
+
* @param {*} [options] Override http request option.
|
|
9347
|
+
* @throws {RequiredError}
|
|
9348
|
+
*/
|
|
9349
|
+
postSendWelcomeEmail(id: string, postSendWelcomeEmailRequest?: PostSendWelcomeEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
9350
|
+
return localVarFp.postSendWelcomeEmail(id, postSendWelcomeEmailRequest, options).then((request) => request(axios, basePath));
|
|
9351
|
+
},
|
|
9352
9352
|
/**
|
|
9353
9353
|
* Submit reseller application
|
|
9354
9354
|
* @summary Submit reseller application
|
|
@@ -9508,17 +9508,6 @@ export class AccountsApi extends BaseAPI {
|
|
|
9508
9508
|
return AccountsApiFp(this.configuration).getVerifyEmailAddress(token, options).then((request) => request(this.axios, this.basePath));
|
|
9509
9509
|
}
|
|
9510
9510
|
|
|
9511
|
-
/**
|
|
9512
|
-
* Send Account Welcome Email
|
|
9513
|
-
* @param {string} id Xero ID
|
|
9514
|
-
* @param {PatchSendWelcomeEmailRequest} [patchSendWelcomeEmailRequest] Email Request
|
|
9515
|
-
* @param {*} [options] Override http request option.
|
|
9516
|
-
* @throws {RequiredError}
|
|
9517
|
-
*/
|
|
9518
|
-
public patchSendWelcomeEmail(id: string, patchSendWelcomeEmailRequest?: PatchSendWelcomeEmailRequest, options?: RawAxiosRequestConfig) {
|
|
9519
|
-
return AccountsApiFp(this.configuration).patchSendWelcomeEmail(id, patchSendWelcomeEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9520
|
-
}
|
|
9521
|
-
|
|
9522
9511
|
/**
|
|
9523
9512
|
* Set Account Portal Access
|
|
9524
9513
|
* @param {string} id Xero ID
|
|
@@ -9639,6 +9628,17 @@ export class AccountsApi extends BaseAPI {
|
|
|
9639
9628
|
return AccountsApiFp(this.configuration).postSendPasswordReset(email, options).then((request) => request(this.axios, this.basePath));
|
|
9640
9629
|
}
|
|
9641
9630
|
|
|
9631
|
+
/**
|
|
9632
|
+
* Send Account Welcome Email
|
|
9633
|
+
* @param {string} id Xero ID
|
|
9634
|
+
* @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
|
|
9635
|
+
* @param {*} [options] Override http request option.
|
|
9636
|
+
* @throws {RequiredError}
|
|
9637
|
+
*/
|
|
9638
|
+
public postSendWelcomeEmail(id: string, postSendWelcomeEmailRequest?: PostSendWelcomeEmailRequest, options?: RawAxiosRequestConfig) {
|
|
9639
|
+
return AccountsApiFp(this.configuration).postSendWelcomeEmail(id, postSendWelcomeEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9640
|
+
}
|
|
9641
|
+
|
|
9642
9642
|
/**
|
|
9643
9643
|
* Submit reseller application
|
|
9644
9644
|
* @summary Submit reseller application
|
package/dist/api.d.ts
CHANGED
|
@@ -3857,12 +3857,6 @@ export interface OrderedItemModel {
|
|
|
3857
3857
|
*/
|
|
3858
3858
|
'returnedStock'?: number;
|
|
3859
3859
|
}
|
|
3860
|
-
export interface PatchSendWelcomeEmailRequest {
|
|
3861
|
-
/**
|
|
3862
|
-
* email
|
|
3863
|
-
*/
|
|
3864
|
-
'email'?: string;
|
|
3865
|
-
}
|
|
3866
3860
|
export interface PatchUpdateAccountCnameRequest {
|
|
3867
3861
|
/**
|
|
3868
3862
|
* CNAME
|
|
@@ -4062,6 +4056,12 @@ export interface PostGetProductRequest {
|
|
|
4062
4056
|
*/
|
|
4063
4057
|
'hosting'?: boolean | null;
|
|
4064
4058
|
}
|
|
4059
|
+
export interface PostSendWelcomeEmailRequest {
|
|
4060
|
+
/**
|
|
4061
|
+
* email
|
|
4062
|
+
*/
|
|
4063
|
+
'email'?: string;
|
|
4064
|
+
}
|
|
4065
4065
|
export interface PostSplitOrderRequest {
|
|
4066
4066
|
/**
|
|
4067
4067
|
* Item Ids
|
|
@@ -7848,14 +7848,6 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
7848
7848
|
* @throws {RequiredError}
|
|
7849
7849
|
*/
|
|
7850
7850
|
getVerifyEmailAddress: (token: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7851
|
-
/**
|
|
7852
|
-
* Send Account Welcome Email
|
|
7853
|
-
* @param {string} id Xero ID
|
|
7854
|
-
* @param {PatchSendWelcomeEmailRequest} [patchSendWelcomeEmailRequest] Email Request
|
|
7855
|
-
* @param {*} [options] Override http request option.
|
|
7856
|
-
* @throws {RequiredError}
|
|
7857
|
-
*/
|
|
7858
|
-
patchSendWelcomeEmail: (id: string, patchSendWelcomeEmailRequest?: PatchSendWelcomeEmailRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7859
7851
|
/**
|
|
7860
7852
|
* Set Account Portal Access
|
|
7861
7853
|
* @param {string} id Xero ID
|
|
@@ -7943,6 +7935,14 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
7943
7935
|
* @throws {RequiredError}
|
|
7944
7936
|
*/
|
|
7945
7937
|
postSendPasswordReset: (email: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7938
|
+
/**
|
|
7939
|
+
* Send Account Welcome Email
|
|
7940
|
+
* @param {string} id Xero ID
|
|
7941
|
+
* @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
|
|
7942
|
+
* @param {*} [options] Override http request option.
|
|
7943
|
+
* @throws {RequiredError}
|
|
7944
|
+
*/
|
|
7945
|
+
postSendWelcomeEmail: (id: string, postSendWelcomeEmailRequest?: PostSendWelcomeEmailRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7946
7946
|
/**
|
|
7947
7947
|
* Submit reseller application
|
|
7948
7948
|
* @summary Submit reseller application
|
|
@@ -8062,14 +8062,6 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
8062
8062
|
* @throws {RequiredError}
|
|
8063
8063
|
*/
|
|
8064
8064
|
getVerifyEmailAddress(token: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
8065
|
-
/**
|
|
8066
|
-
* Send Account Welcome Email
|
|
8067
|
-
* @param {string} id Xero ID
|
|
8068
|
-
* @param {PatchSendWelcomeEmailRequest} [patchSendWelcomeEmailRequest] Email Request
|
|
8069
|
-
* @param {*} [options] Override http request option.
|
|
8070
|
-
* @throws {RequiredError}
|
|
8071
|
-
*/
|
|
8072
|
-
patchSendWelcomeEmail(id: string, patchSendWelcomeEmailRequest?: PatchSendWelcomeEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
8073
8065
|
/**
|
|
8074
8066
|
* Set Account Portal Access
|
|
8075
8067
|
* @param {string} id Xero ID
|
|
@@ -8157,6 +8149,14 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
8157
8149
|
* @throws {RequiredError}
|
|
8158
8150
|
*/
|
|
8159
8151
|
postSendPasswordReset(email: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
8152
|
+
/**
|
|
8153
|
+
* Send Account Welcome Email
|
|
8154
|
+
* @param {string} id Xero ID
|
|
8155
|
+
* @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
|
|
8156
|
+
* @param {*} [options] Override http request option.
|
|
8157
|
+
* @throws {RequiredError}
|
|
8158
|
+
*/
|
|
8159
|
+
postSendWelcomeEmail(id: string, postSendWelcomeEmailRequest?: PostSendWelcomeEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
8160
8160
|
/**
|
|
8161
8161
|
* Submit reseller application
|
|
8162
8162
|
* @summary Submit reseller application
|
|
@@ -8276,14 +8276,6 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
|
|
|
8276
8276
|
* @throws {RequiredError}
|
|
8277
8277
|
*/
|
|
8278
8278
|
getVerifyEmailAddress(token: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
8279
|
-
/**
|
|
8280
|
-
* Send Account Welcome Email
|
|
8281
|
-
* @param {string} id Xero ID
|
|
8282
|
-
* @param {PatchSendWelcomeEmailRequest} [patchSendWelcomeEmailRequest] Email Request
|
|
8283
|
-
* @param {*} [options] Override http request option.
|
|
8284
|
-
* @throws {RequiredError}
|
|
8285
|
-
*/
|
|
8286
|
-
patchSendWelcomeEmail(id: string, patchSendWelcomeEmailRequest?: PatchSendWelcomeEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
8287
8279
|
/**
|
|
8288
8280
|
* Set Account Portal Access
|
|
8289
8281
|
* @param {string} id Xero ID
|
|
@@ -8371,6 +8363,14 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
|
|
|
8371
8363
|
* @throws {RequiredError}
|
|
8372
8364
|
*/
|
|
8373
8365
|
postSendPasswordReset(email: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
8366
|
+
/**
|
|
8367
|
+
* Send Account Welcome Email
|
|
8368
|
+
* @param {string} id Xero ID
|
|
8369
|
+
* @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
|
|
8370
|
+
* @param {*} [options] Override http request option.
|
|
8371
|
+
* @throws {RequiredError}
|
|
8372
|
+
*/
|
|
8373
|
+
postSendWelcomeEmail(id: string, postSendWelcomeEmailRequest?: PostSendWelcomeEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
8374
8374
|
/**
|
|
8375
8375
|
* Submit reseller application
|
|
8376
8376
|
* @summary Submit reseller application
|
|
@@ -8490,14 +8490,6 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
8490
8490
|
* @throws {RequiredError}
|
|
8491
8491
|
*/
|
|
8492
8492
|
getVerifyEmailAddress(token: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
8493
|
-
/**
|
|
8494
|
-
* Send Account Welcome Email
|
|
8495
|
-
* @param {string} id Xero ID
|
|
8496
|
-
* @param {PatchSendWelcomeEmailRequest} [patchSendWelcomeEmailRequest] Email Request
|
|
8497
|
-
* @param {*} [options] Override http request option.
|
|
8498
|
-
* @throws {RequiredError}
|
|
8499
|
-
*/
|
|
8500
|
-
patchSendWelcomeEmail(id: string, patchSendWelcomeEmailRequest?: PatchSendWelcomeEmailRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
8501
8493
|
/**
|
|
8502
8494
|
* Set Account Portal Access
|
|
8503
8495
|
* @param {string} id Xero ID
|
|
@@ -8585,6 +8577,14 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
8585
8577
|
* @throws {RequiredError}
|
|
8586
8578
|
*/
|
|
8587
8579
|
postSendPasswordReset(email: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
8580
|
+
/**
|
|
8581
|
+
* Send Account Welcome Email
|
|
8582
|
+
* @param {string} id Xero ID
|
|
8583
|
+
* @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
|
|
8584
|
+
* @param {*} [options] Override http request option.
|
|
8585
|
+
* @throws {RequiredError}
|
|
8586
|
+
*/
|
|
8587
|
+
postSendWelcomeEmail(id: string, postSendWelcomeEmailRequest?: PostSendWelcomeEmailRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
8588
8588
|
/**
|
|
8589
8589
|
* Submit reseller application
|
|
8590
8590
|
* @summary Submit reseller application
|
package/dist/api.js
CHANGED
|
@@ -797,45 +797,6 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
797
797
|
});
|
|
798
798
|
});
|
|
799
799
|
},
|
|
800
|
-
/**
|
|
801
|
-
* Send Account Welcome Email
|
|
802
|
-
* @param {string} id Xero ID
|
|
803
|
-
* @param {PatchSendWelcomeEmailRequest} [patchSendWelcomeEmailRequest] Email Request
|
|
804
|
-
* @param {*} [options] Override http request option.
|
|
805
|
-
* @throws {RequiredError}
|
|
806
|
-
*/
|
|
807
|
-
patchSendWelcomeEmail: function (id_1, patchSendWelcomeEmailRequest_1) {
|
|
808
|
-
var args_1 = [];
|
|
809
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
810
|
-
args_1[_i - 2] = arguments[_i];
|
|
811
|
-
}
|
|
812
|
-
return __awaiter(_this, __spreadArray([id_1, patchSendWelcomeEmailRequest_1], args_1, true), void 0, function (id, patchSendWelcomeEmailRequest, options) {
|
|
813
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
814
|
-
if (options === void 0) { options = {}; }
|
|
815
|
-
return __generator(this, function (_a) {
|
|
816
|
-
// verify required parameter 'id' is not null or undefined
|
|
817
|
-
(0, common_1.assertParamExists)('patchSendWelcomeEmail', 'id', id);
|
|
818
|
-
localVarPath = "/admin/accounts/{id}/email/welcome"
|
|
819
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
820
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
821
|
-
if (configuration) {
|
|
822
|
-
baseOptions = configuration.baseOptions;
|
|
823
|
-
}
|
|
824
|
-
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
825
|
-
localVarHeaderParameter = {};
|
|
826
|
-
localVarQueryParameter = {};
|
|
827
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
828
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
829
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
830
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
831
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchSendWelcomeEmailRequest, localVarRequestOptions, configuration);
|
|
832
|
-
return [2 /*return*/, {
|
|
833
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
834
|
-
options: localVarRequestOptions,
|
|
835
|
-
}];
|
|
836
|
-
});
|
|
837
|
-
});
|
|
838
|
-
},
|
|
839
800
|
/**
|
|
840
801
|
* Set Account Portal Access
|
|
841
802
|
* @param {string} id Xero ID
|
|
@@ -1252,6 +1213,45 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1252
1213
|
});
|
|
1253
1214
|
});
|
|
1254
1215
|
},
|
|
1216
|
+
/**
|
|
1217
|
+
* Send Account Welcome Email
|
|
1218
|
+
* @param {string} id Xero ID
|
|
1219
|
+
* @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
|
|
1220
|
+
* @param {*} [options] Override http request option.
|
|
1221
|
+
* @throws {RequiredError}
|
|
1222
|
+
*/
|
|
1223
|
+
postSendWelcomeEmail: function (id_1, postSendWelcomeEmailRequest_1) {
|
|
1224
|
+
var args_1 = [];
|
|
1225
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1226
|
+
args_1[_i - 2] = arguments[_i];
|
|
1227
|
+
}
|
|
1228
|
+
return __awaiter(_this, __spreadArray([id_1, postSendWelcomeEmailRequest_1], args_1, true), void 0, function (id, postSendWelcomeEmailRequest, options) {
|
|
1229
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1230
|
+
if (options === void 0) { options = {}; }
|
|
1231
|
+
return __generator(this, function (_a) {
|
|
1232
|
+
// verify required parameter 'id' is not null or undefined
|
|
1233
|
+
(0, common_1.assertParamExists)('postSendWelcomeEmail', 'id', id);
|
|
1234
|
+
localVarPath = "/admin/accounts/{id}/email/welcome"
|
|
1235
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
1236
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1237
|
+
if (configuration) {
|
|
1238
|
+
baseOptions = configuration.baseOptions;
|
|
1239
|
+
}
|
|
1240
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1241
|
+
localVarHeaderParameter = {};
|
|
1242
|
+
localVarQueryParameter = {};
|
|
1243
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1244
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1245
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1246
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1247
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postSendWelcomeEmailRequest, localVarRequestOptions, configuration);
|
|
1248
|
+
return [2 /*return*/, {
|
|
1249
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1250
|
+
options: localVarRequestOptions,
|
|
1251
|
+
}];
|
|
1252
|
+
});
|
|
1253
|
+
});
|
|
1254
|
+
},
|
|
1255
1255
|
/**
|
|
1256
1256
|
* Submit reseller application
|
|
1257
1257
|
* @summary Submit reseller application
|
|
@@ -1653,29 +1653,6 @@ var AccountsApiFp = function (configuration) {
|
|
|
1653
1653
|
});
|
|
1654
1654
|
});
|
|
1655
1655
|
},
|
|
1656
|
-
/**
|
|
1657
|
-
* Send Account Welcome Email
|
|
1658
|
-
* @param {string} id Xero ID
|
|
1659
|
-
* @param {PatchSendWelcomeEmailRequest} [patchSendWelcomeEmailRequest] Email Request
|
|
1660
|
-
* @param {*} [options] Override http request option.
|
|
1661
|
-
* @throws {RequiredError}
|
|
1662
|
-
*/
|
|
1663
|
-
patchSendWelcomeEmail: function (id, patchSendWelcomeEmailRequest, options) {
|
|
1664
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1665
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1666
|
-
var _a, _b, _c;
|
|
1667
|
-
return __generator(this, function (_d) {
|
|
1668
|
-
switch (_d.label) {
|
|
1669
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchSendWelcomeEmail(id, patchSendWelcomeEmailRequest, options)];
|
|
1670
|
-
case 1:
|
|
1671
|
-
localVarAxiosArgs = _d.sent();
|
|
1672
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1673
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchSendWelcomeEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1674
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1675
|
-
}
|
|
1676
|
-
});
|
|
1677
|
-
});
|
|
1678
|
-
},
|
|
1679
1656
|
/**
|
|
1680
1657
|
* Set Account Portal Access
|
|
1681
1658
|
* @param {string} id Xero ID
|
|
@@ -1928,6 +1905,29 @@ var AccountsApiFp = function (configuration) {
|
|
|
1928
1905
|
});
|
|
1929
1906
|
});
|
|
1930
1907
|
},
|
|
1908
|
+
/**
|
|
1909
|
+
* Send Account Welcome Email
|
|
1910
|
+
* @param {string} id Xero ID
|
|
1911
|
+
* @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
|
|
1912
|
+
* @param {*} [options] Override http request option.
|
|
1913
|
+
* @throws {RequiredError}
|
|
1914
|
+
*/
|
|
1915
|
+
postSendWelcomeEmail: function (id, postSendWelcomeEmailRequest, options) {
|
|
1916
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1917
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1918
|
+
var _a, _b, _c;
|
|
1919
|
+
return __generator(this, function (_d) {
|
|
1920
|
+
switch (_d.label) {
|
|
1921
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postSendWelcomeEmail(id, postSendWelcomeEmailRequest, options)];
|
|
1922
|
+
case 1:
|
|
1923
|
+
localVarAxiosArgs = _d.sent();
|
|
1924
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1925
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.postSendWelcomeEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1926
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1927
|
+
}
|
|
1928
|
+
});
|
|
1929
|
+
});
|
|
1930
|
+
},
|
|
1931
1931
|
/**
|
|
1932
1932
|
* Submit reseller application
|
|
1933
1933
|
* @summary Submit reseller application
|
|
@@ -2131,16 +2131,6 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
2131
2131
|
getVerifyEmailAddress: function (token, options) {
|
|
2132
2132
|
return localVarFp.getVerifyEmailAddress(token, options).then(function (request) { return request(axios, basePath); });
|
|
2133
2133
|
},
|
|
2134
|
-
/**
|
|
2135
|
-
* Send Account Welcome Email
|
|
2136
|
-
* @param {string} id Xero ID
|
|
2137
|
-
* @param {PatchSendWelcomeEmailRequest} [patchSendWelcomeEmailRequest] Email Request
|
|
2138
|
-
* @param {*} [options] Override http request option.
|
|
2139
|
-
* @throws {RequiredError}
|
|
2140
|
-
*/
|
|
2141
|
-
patchSendWelcomeEmail: function (id, patchSendWelcomeEmailRequest, options) {
|
|
2142
|
-
return localVarFp.patchSendWelcomeEmail(id, patchSendWelcomeEmailRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2143
|
-
},
|
|
2144
2134
|
/**
|
|
2145
2135
|
* Set Account Portal Access
|
|
2146
2136
|
* @param {string} id Xero ID
|
|
@@ -2250,6 +2240,16 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
2250
2240
|
postSendPasswordReset: function (email, options) {
|
|
2251
2241
|
return localVarFp.postSendPasswordReset(email, options).then(function (request) { return request(axios, basePath); });
|
|
2252
2242
|
},
|
|
2243
|
+
/**
|
|
2244
|
+
* Send Account Welcome Email
|
|
2245
|
+
* @param {string} id Xero ID
|
|
2246
|
+
* @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
|
|
2247
|
+
* @param {*} [options] Override http request option.
|
|
2248
|
+
* @throws {RequiredError}
|
|
2249
|
+
*/
|
|
2250
|
+
postSendWelcomeEmail: function (id, postSendWelcomeEmailRequest, options) {
|
|
2251
|
+
return localVarFp.postSendWelcomeEmail(id, postSendWelcomeEmailRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2252
|
+
},
|
|
2253
2253
|
/**
|
|
2254
2254
|
* Submit reseller application
|
|
2255
2255
|
* @summary Submit reseller application
|
|
@@ -2413,17 +2413,6 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
2413
2413
|
var _this = this;
|
|
2414
2414
|
return (0, exports.AccountsApiFp)(this.configuration).getVerifyEmailAddress(token, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2415
2415
|
};
|
|
2416
|
-
/**
|
|
2417
|
-
* Send Account Welcome Email
|
|
2418
|
-
* @param {string} id Xero ID
|
|
2419
|
-
* @param {PatchSendWelcomeEmailRequest} [patchSendWelcomeEmailRequest] Email Request
|
|
2420
|
-
* @param {*} [options] Override http request option.
|
|
2421
|
-
* @throws {RequiredError}
|
|
2422
|
-
*/
|
|
2423
|
-
AccountsApi.prototype.patchSendWelcomeEmail = function (id, patchSendWelcomeEmailRequest, options) {
|
|
2424
|
-
var _this = this;
|
|
2425
|
-
return (0, exports.AccountsApiFp)(this.configuration).patchSendWelcomeEmail(id, patchSendWelcomeEmailRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2426
|
-
};
|
|
2427
2416
|
/**
|
|
2428
2417
|
* Set Account Portal Access
|
|
2429
2418
|
* @param {string} id Xero ID
|
|
@@ -2544,6 +2533,17 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
2544
2533
|
var _this = this;
|
|
2545
2534
|
return (0, exports.AccountsApiFp)(this.configuration).postSendPasswordReset(email, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2546
2535
|
};
|
|
2536
|
+
/**
|
|
2537
|
+
* Send Account Welcome Email
|
|
2538
|
+
* @param {string} id Xero ID
|
|
2539
|
+
* @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
|
|
2540
|
+
* @param {*} [options] Override http request option.
|
|
2541
|
+
* @throws {RequiredError}
|
|
2542
|
+
*/
|
|
2543
|
+
AccountsApi.prototype.postSendWelcomeEmail = function (id, postSendWelcomeEmailRequest, options) {
|
|
2544
|
+
var _this = this;
|
|
2545
|
+
return (0, exports.AccountsApiFp)(this.configuration).postSendWelcomeEmail(id, postSendWelcomeEmailRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2546
|
+
};
|
|
2547
2547
|
/**
|
|
2548
2548
|
* Submit reseller application
|
|
2549
2549
|
* @summary Submit reseller application
|
package/docs/AccountsApi.md
CHANGED
|
@@ -14,7 +14,6 @@ All URIs are relative to *https://localhost*
|
|
|
14
14
|
|[**getGetClientCredentials**](#getgetclientcredentials) | **GET** /accounts/me/contacts/credentials | Get user\'s client credentials|
|
|
15
15
|
|[**getGetCustomerKeys**](#getgetcustomerkeys) | **GET** /accounts/me/tcx/keys | Get 3CX Keys|
|
|
16
16
|
|[**getVerifyEmailAddress**](#getverifyemailaddress) | **GET** /accounts/contacts/verify | Verify account email address|
|
|
17
|
-
|[**patchSendWelcomeEmail**](#patchsendwelcomeemail) | **PATCH** /admin/accounts/{id}/email/welcome | |
|
|
18
17
|
|[**patchSetPortalAccess**](#patchsetportalaccess) | **PATCH** /admin/accounts/{id}/portal/access/{state} | |
|
|
19
18
|
|[**patchSetPrizePromo**](#patchsetprizepromo) | **PATCH** /admin/accounts/{id}/prizes/{state} | |
|
|
20
19
|
|[**patchSetTcxWizardCname**](#patchsettcxwizardcname) | **PATCH** /accounts/me/cname | |
|
|
@@ -26,6 +25,7 @@ All URIs are relative to *https://localhost*
|
|
|
26
25
|
|[**postGetClientCredentials**](#postgetclientcredentials) | **POST** /accounts/me/contacts/credentials | Create client credentials|
|
|
27
26
|
|[**postSendEmailVerificationEmail**](#postsendemailverificationemail) | **POST** /accounts/contacts/verify/{email} | Send email verification email|
|
|
28
27
|
|[**postSendPasswordReset**](#postsendpasswordreset) | **POST** /accounts/contacts/password/reset | Send password reset email|
|
|
28
|
+
|[**postSendWelcomeEmail**](#postsendwelcomeemail) | **POST** /admin/accounts/{id}/email/welcome | |
|
|
29
29
|
|[**postSubmitResellerApplication**](#postsubmitresellerapplication) | **POST** /accounts/reseller | Submit reseller application|
|
|
30
30
|
|[**putUpdateAccountContact**](#putupdateaccountcontact) | **PUT** /accounts/me/contacts/{email} | Update Account Contact|
|
|
31
31
|
|[**putUpdateBillingAddress**](#putupdatebillingaddress) | **PUT** /admin/accounts/{id}/billing/address | |
|
|
@@ -549,64 +549,6 @@ No authorization required
|
|
|
549
549
|
- **Accept**: Not defined
|
|
550
550
|
|
|
551
551
|
|
|
552
|
-
### HTTP response details
|
|
553
|
-
| Status code | Description | Response headers |
|
|
554
|
-
|-------------|-------------|------------------|
|
|
555
|
-
|**200** | No Response | - |
|
|
556
|
-
|**400** | Bad Request | - |
|
|
557
|
-
|**401** | Unauthorised | - |
|
|
558
|
-
|**403** | Access Denied | - |
|
|
559
|
-
|
|
560
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
561
|
-
|
|
562
|
-
# **patchSendWelcomeEmail**
|
|
563
|
-
> patchSendWelcomeEmail()
|
|
564
|
-
|
|
565
|
-
Send Account Welcome Email
|
|
566
|
-
|
|
567
|
-
### Example
|
|
568
|
-
|
|
569
|
-
```typescript
|
|
570
|
-
import {
|
|
571
|
-
AccountsApi,
|
|
572
|
-
Configuration,
|
|
573
|
-
PatchSendWelcomeEmailRequest
|
|
574
|
-
} from 'yellowgrid-api-ts';
|
|
575
|
-
|
|
576
|
-
const configuration = new Configuration();
|
|
577
|
-
const apiInstance = new AccountsApi(configuration);
|
|
578
|
-
|
|
579
|
-
let id: string; //Xero ID (default to undefined)
|
|
580
|
-
let patchSendWelcomeEmailRequest: PatchSendWelcomeEmailRequest; //Email Request (optional)
|
|
581
|
-
|
|
582
|
-
const { status, data } = await apiInstance.patchSendWelcomeEmail(
|
|
583
|
-
id,
|
|
584
|
-
patchSendWelcomeEmailRequest
|
|
585
|
-
);
|
|
586
|
-
```
|
|
587
|
-
|
|
588
|
-
### Parameters
|
|
589
|
-
|
|
590
|
-
|Name | Type | Description | Notes|
|
|
591
|
-
|------------- | ------------- | ------------- | -------------|
|
|
592
|
-
| **patchSendWelcomeEmailRequest** | **PatchSendWelcomeEmailRequest**| Email Request | |
|
|
593
|
-
| **id** | [**string**] | Xero ID | defaults to undefined|
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
### Return type
|
|
597
|
-
|
|
598
|
-
void (empty response body)
|
|
599
|
-
|
|
600
|
-
### Authorization
|
|
601
|
-
|
|
602
|
-
No authorization required
|
|
603
|
-
|
|
604
|
-
### HTTP request headers
|
|
605
|
-
|
|
606
|
-
- **Content-Type**: application/json
|
|
607
|
-
- **Accept**: Not defined
|
|
608
|
-
|
|
609
|
-
|
|
610
552
|
### HTTP response details
|
|
611
553
|
| Status code | Description | Response headers |
|
|
612
554
|
|-------------|-------------|------------------|
|
|
@@ -1212,6 +1154,64 @@ No authorization required
|
|
|
1212
1154
|
- **Accept**: Not defined
|
|
1213
1155
|
|
|
1214
1156
|
|
|
1157
|
+
### HTTP response details
|
|
1158
|
+
| Status code | Description | Response headers |
|
|
1159
|
+
|-------------|-------------|------------------|
|
|
1160
|
+
|**200** | No Response | - |
|
|
1161
|
+
|**400** | Bad Request | - |
|
|
1162
|
+
|**401** | Unauthorised | - |
|
|
1163
|
+
|**403** | Access Denied | - |
|
|
1164
|
+
|
|
1165
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1166
|
+
|
|
1167
|
+
# **postSendWelcomeEmail**
|
|
1168
|
+
> postSendWelcomeEmail()
|
|
1169
|
+
|
|
1170
|
+
Send Account Welcome Email
|
|
1171
|
+
|
|
1172
|
+
### Example
|
|
1173
|
+
|
|
1174
|
+
```typescript
|
|
1175
|
+
import {
|
|
1176
|
+
AccountsApi,
|
|
1177
|
+
Configuration,
|
|
1178
|
+
PostSendWelcomeEmailRequest
|
|
1179
|
+
} from 'yellowgrid-api-ts';
|
|
1180
|
+
|
|
1181
|
+
const configuration = new Configuration();
|
|
1182
|
+
const apiInstance = new AccountsApi(configuration);
|
|
1183
|
+
|
|
1184
|
+
let id: string; //Xero ID (default to undefined)
|
|
1185
|
+
let postSendWelcomeEmailRequest: PostSendWelcomeEmailRequest; //Email Request (optional)
|
|
1186
|
+
|
|
1187
|
+
const { status, data } = await apiInstance.postSendWelcomeEmail(
|
|
1188
|
+
id,
|
|
1189
|
+
postSendWelcomeEmailRequest
|
|
1190
|
+
);
|
|
1191
|
+
```
|
|
1192
|
+
|
|
1193
|
+
### Parameters
|
|
1194
|
+
|
|
1195
|
+
|Name | Type | Description | Notes|
|
|
1196
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1197
|
+
| **postSendWelcomeEmailRequest** | **PostSendWelcomeEmailRequest**| Email Request | |
|
|
1198
|
+
| **id** | [**string**] | Xero ID | defaults to undefined|
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
### Return type
|
|
1202
|
+
|
|
1203
|
+
void (empty response body)
|
|
1204
|
+
|
|
1205
|
+
### Authorization
|
|
1206
|
+
|
|
1207
|
+
No authorization required
|
|
1208
|
+
|
|
1209
|
+
### HTTP request headers
|
|
1210
|
+
|
|
1211
|
+
- **Content-Type**: application/json
|
|
1212
|
+
- **Accept**: Not defined
|
|
1213
|
+
|
|
1214
|
+
|
|
1215
1215
|
### HTTP response details
|
|
1216
1216
|
| Status code | Description | Response headers |
|
|
1217
1217
|
|-------------|-------------|------------------|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# PostSendWelcomeEmailRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**email** | **string** | email | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { PostSendWelcomeEmailRequest } from 'yellowgrid-api-ts';
|
|
14
|
+
|
|
15
|
+
const instance: PostSendWelcomeEmailRequest = {
|
|
16
|
+
email,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|