yellowgrid-api-ts 3.2.132-dev.0 → 3.2.133-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.
@@ -153,6 +153,9 @@ docs/ProductSummaryDTO.md
153
153
  docs/ProductsApi.md
154
154
  docs/PromoCodesEntity.md
155
155
  docs/PromoItemsEntity.md
156
+ docs/ProspectDTO.md
157
+ docs/ProspectEntity.md
158
+ docs/ProspectsApi.md
156
159
  docs/ProvisioningApi.md
157
160
  docs/ProvisioningModel.md
158
161
  docs/ProvisioningRequestEntity.md
package/README.md CHANGED
@@ -213,6 +213,10 @@ Class | Method | HTTP request | Description
213
213
  *ProductsApi* | [**patchAddQuantityToStock**](docs/ProductsApi.md#patchaddquantitytostock) | **PATCH** /products/{sku}/stock/add | Add Item Quantity To Stock
214
214
  *ProductsApi* | [**postGetProduct**](docs/ProductsApi.md#postgetproduct) | **POST** /products/{sku} | Get Product
215
215
  *ProductsApi* | [**postGetProductForCustomer**](docs/ProductsApi.md#postgetproductforcustomer) | **POST** /admin/products/{sku} | Get Product For Customer
216
+ *ProspectsApi* | [**getGetProspect**](docs/ProspectsApi.md#getgetprospect) | **GET** /accounts/prospects/{xero_id} | Get Prospect
217
+ *ProspectsApi* | [**getGetProspects**](docs/ProspectsApi.md#getgetprospects) | **GET** /accounts/prospects | Get Prospects
218
+ *ProspectsApi* | [**getRemoveFromProspects**](docs/ProspectsApi.md#getremovefromprospects) | **GET** /accounts/prospects/{xero_id}/remove | Remove From Prospects
219
+ *ProspectsApi* | [**getSetCallback**](docs/ProspectsApi.md#getsetcallback) | **GET** /accounts/prospects/{xero_id}/date | Set Call Back Date
216
220
  *ProvisioningApi* | [**deleteAddFanvilMac**](docs/ProvisioningApi.md#deleteaddfanvilmac) | **DELETE** /provisioning/fanvil/groups/{id}/macs/{mac} | Remove MAC address from DB and FDPS group
217
221
  *ProvisioningApi* | [**deleteDeleteFanvilGroup**](docs/ProvisioningApi.md#deletedeletefanvilgroup) | **DELETE** /provisioning/fanvil/groups/{id} | Delete group from DB and FDPS
218
222
  *ProvisioningApi* | [**getGetFanvilEncryptionKey**](docs/ProvisioningApi.md#getgetfanvilencryptionkey) | **GET** /provisioning/fanvil/groups/{id}/macs/{mac}/key | Get group Fanvil encryption key
@@ -425,6 +429,8 @@ Class | Method | HTTP request | Description
425
429
  - [ProductSummaryDTO](docs/ProductSummaryDTO.md)
426
430
  - [PromoCodesEntity](docs/PromoCodesEntity.md)
427
431
  - [PromoItemsEntity](docs/PromoItemsEntity.md)
432
+ - [ProspectDTO](docs/ProspectDTO.md)
433
+ - [ProspectEntity](docs/ProspectEntity.md)
428
434
  - [ProvisioningModel](docs/ProvisioningModel.md)
429
435
  - [ProvisioningRequestEntity](docs/ProvisioningRequestEntity.md)
430
436
  - [PutAllocateItemsRequest](docs/PutAllocateItemsRequest.md)
package/api.ts CHANGED
@@ -933,6 +933,7 @@ export const AuditLogEntityTypeEnum = {
933
933
  PopsPromoCodes: 'pops_promo_codes',
934
934
  PopsPromoItems: 'pops_promo_items',
935
935
  PopsProvisioning: 'pops_provisioning',
936
+ PopsProspectsV2: 'pops_prospects_v2',
936
937
  S3Buckets: 's3_buckets',
937
938
  PopsShipmentAddress: 'pops_shipment_address',
938
939
  PopsShipments: 'pops_shipments',
@@ -4635,6 +4636,99 @@ export interface PromoItemsEntity {
4635
4636
  */
4636
4637
  'bulkAdd'?: number;
4637
4638
  }
4639
+ /**
4640
+ * Prospect
4641
+ */
4642
+ export interface ProspectDTO {
4643
+ /**
4644
+ * Company Name
4645
+ */
4646
+ 'companyName'?: string;
4647
+ /**
4648
+ * Telephone
4649
+ */
4650
+ 'telephone'?: string | null;
4651
+ /**
4652
+ * Date Time
4653
+ */
4654
+ 'lastOrderDate'?: string | null;
4655
+ /**
4656
+ * Date Time
4657
+ */
4658
+ 'callbackDate'?: string | null;
4659
+ /**
4660
+ * Xero ID
4661
+ */
4662
+ 'xeroId'?: string;
4663
+ /**
4664
+ * Removed From Prospects
4665
+ */
4666
+ 'removed'?: boolean;
4667
+ /**
4668
+ * Status
4669
+ */
4670
+ 'status'?: ProspectDTOStatusEnum;
4671
+ }
4672
+
4673
+ export const ProspectDTOStatusEnum = {
4674
+ NoCallBackSet: 'No Call Back Set',
4675
+ CallBackDue: 'Call Back Due',
4676
+ NoOrdersPlaced: 'No Orders Placed',
4677
+ NoOrdersInTheLast4Months: 'No Orders In The Last 4 Months',
4678
+ NoActionRequired: 'No Action Required'
4679
+ } as const;
4680
+
4681
+ export type ProspectDTOStatusEnum = typeof ProspectDTOStatusEnum[keyof typeof ProspectDTOStatusEnum];
4682
+
4683
+ /**
4684
+ * ProspectEntity
4685
+ */
4686
+ export interface ProspectEntity {
4687
+ /**
4688
+ * id
4689
+ */
4690
+ 'id'?: number;
4691
+ /**
4692
+ * status
4693
+ */
4694
+ 'status'?: number;
4695
+ /**
4696
+ * customerId
4697
+ */
4698
+ 'customerId'?: number;
4699
+ /**
4700
+ * companyName
4701
+ */
4702
+ 'companyName'?: string;
4703
+ /**
4704
+ * contactName
4705
+ */
4706
+ 'contactName'?: string;
4707
+ /**
4708
+ * telephone
4709
+ */
4710
+ 'telephone'?: string;
4711
+ /**
4712
+ * email
4713
+ */
4714
+ 'email'?: string;
4715
+ /**
4716
+ * reason
4717
+ */
4718
+ 'reason'?: string;
4719
+ /**
4720
+ * lastOrderDate
4721
+ */
4722
+ 'lastOrderDate'?: string;
4723
+ /**
4724
+ * followUpDate
4725
+ */
4726
+ 'followUpDate'?: string;
4727
+ /**
4728
+ * notes
4729
+ */
4730
+ 'notes'?: string;
4731
+ }
4638
4732
  /**
4639
4733
  * Provisioning Group
4640
4734
  */
@@ -20916,6 +21010,324 @@ export const GetGetLegacyStockListFormatEnum = {
20916
21010
  export type GetGetLegacyStockListFormatEnum = typeof GetGetLegacyStockListFormatEnum[keyof typeof GetGetLegacyStockListFormatEnum];
20917
21011
 
20918
21012
 
21013
+ /**
21014
+ * ProspectsApi - axios parameter creator
21015
+ */
21016
+ export const ProspectsApiAxiosParamCreator = function (configuration?: Configuration) {
21017
+ return {
21018
+ /**
21019
+ * Get Prospect
21020
+ * @summary Get Prospect
21021
+ * @param {string} xeroId Xero ID
21022
+ * @param {*} [options] Override http request option.
21023
+ * @throws {RequiredError}
21024
+ */
21025
+ getGetProspect: async (xeroId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21026
+ // verify required parameter 'xeroId' is not null or undefined
21027
+ assertParamExists('getGetProspect', 'xeroId', xeroId)
21028
+ const localVarPath = `/accounts/prospects/{xero_id}`
21029
+ .replace(`{${"xero_id"}}`, encodeURIComponent(String(xeroId)));
21030
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21031
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21032
+ let baseOptions;
21033
+ if (configuration) {
21034
+ baseOptions = configuration.baseOptions;
21035
+ }
21036
+
21037
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21038
+ const localVarHeaderParameter = {} as any;
21039
+ const localVarQueryParameter = {} as any;
21040
+
21041
+ localVarHeaderParameter['Accept'] = 'application/json';
21042
+
21043
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21044
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21045
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21046
+
21047
+ return {
21048
+ url: toPathString(localVarUrlObj),
21049
+ options: localVarRequestOptions,
21050
+ };
21051
+ },
21052
+ /**
21053
+ * Get Prospects
21054
+ * @summary Get Prospects
21055
+ * @param {*} [options] Override http request option.
21056
+ * @throws {RequiredError}
21057
+ */
21058
+ getGetProspects: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21059
+ const localVarPath = `/accounts/prospects`;
21060
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21061
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21062
+ let baseOptions;
21063
+ if (configuration) {
21064
+ baseOptions = configuration.baseOptions;
21065
+ }
21066
+
21067
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21068
+ const localVarHeaderParameter = {} as any;
21069
+ const localVarQueryParameter = {} as any;
21070
+
21071
+ localVarHeaderParameter['Accept'] = 'application/json';
21072
+
21073
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21074
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21075
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21076
+
21077
+ return {
21078
+ url: toPathString(localVarUrlObj),
21079
+ options: localVarRequestOptions,
21080
+ };
21081
+ },
21082
+ /**
21083
+ * Remove From Prospect
21084
+ * @summary Remove From Prospects
21085
+ * @param {string} xeroId Xero ID
21086
+ * @param {boolean} status Status
21087
+ * @param {*} [options] Override http request option.
21088
+ * @throws {RequiredError}
21089
+ */
21090
+ getRemoveFromProspects: async (xeroId: string, status: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21091
+ // verify required parameter 'xeroId' is not null or undefined
21092
+ assertParamExists('getRemoveFromProspects', 'xeroId', xeroId)
21093
+ // verify required parameter 'status' is not null or undefined
21094
+ assertParamExists('getRemoveFromProspects', 'status', status)
21095
+ const localVarPath = `/accounts/prospects/{xero_id}/remove`
21096
+ .replace(`{${"xero_id"}}`, encodeURIComponent(String(xeroId)));
21097
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21098
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21099
+ let baseOptions;
21100
+ if (configuration) {
21101
+ baseOptions = configuration.baseOptions;
21102
+ }
21103
+
21104
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21105
+ const localVarHeaderParameter = {} as any;
21106
+ const localVarQueryParameter = {} as any;
21107
+
21108
+ if (status !== undefined) {
21109
+ localVarQueryParameter['status'] = status;
21110
+ }
21111
+
21112
+ localVarHeaderParameter['Accept'] = 'application/json';
21113
+
21114
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21115
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21116
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21117
+
21118
+ return {
21119
+ url: toPathString(localVarUrlObj),
21120
+ options: localVarRequestOptions,
21121
+ };
21122
+ },
21123
+ /**
21124
+ * Set Call Back Date
21125
+ * @summary Set Call Back Date
21126
+ * @param {string} xeroId Xero ID
21127
+ * @param {string} date Callback Date
21128
+ * @param {*} [options] Override http request option.
21129
+ * @throws {RequiredError}
21130
+ */
21131
+ getSetCallback: async (xeroId: string, date: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21132
+ // verify required parameter 'xeroId' is not null or undefined
21133
+ assertParamExists('getSetCallback', 'xeroId', xeroId)
21134
+ // verify required parameter 'date' is not null or undefined
21135
+ assertParamExists('getSetCallback', 'date', date)
21136
+ const localVarPath = `/accounts/prospects/{xero_id}/date`
21137
+ .replace(`{${"xero_id"}}`, encodeURIComponent(String(xeroId)));
21138
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21139
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21140
+ let baseOptions;
21141
+ if (configuration) {
21142
+ baseOptions = configuration.baseOptions;
21143
+ }
21144
+
21145
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21146
+ const localVarHeaderParameter = {} as any;
21147
+ const localVarQueryParameter = {} as any;
21148
+
21149
+ if (date !== undefined) {
21150
+ localVarQueryParameter['date'] = date;
21151
+ }
21152
+
21153
+ localVarHeaderParameter['Accept'] = 'application/json';
21154
+
21155
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21156
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21157
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21158
+
21159
+ return {
21160
+ url: toPathString(localVarUrlObj),
21161
+ options: localVarRequestOptions,
21162
+ };
21163
+ },
21164
+ }
21165
+ };
21166
+
21167
+ /**
21168
+ * ProspectsApi - functional programming interface
21169
+ */
21170
+ export const ProspectsApiFp = function(configuration?: Configuration) {
21171
+ const localVarAxiosParamCreator = ProspectsApiAxiosParamCreator(configuration)
21172
+ return {
21173
+ /**
21174
+ * Get Prospect
21175
+ * @summary Get Prospect
21176
+ * @param {string} xeroId Xero ID
21177
+ * @param {*} [options] Override http request option.
21178
+ * @throws {RequiredError}
21179
+ */
21180
+ async getGetProspect(xeroId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProspectDTO>> {
21181
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProspect(xeroId, options);
21182
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21183
+ const localVarOperationServerBasePath = operationServerMap['ProspectsApi.getGetProspect']?.[localVarOperationServerIndex]?.url;
21184
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21185
+ },
21186
+ /**
21187
+ * Get Prospects
21188
+ * @summary Get Prospects
21189
+ * @param {*} [options] Override http request option.
21190
+ * @throws {RequiredError}
21191
+ */
21192
+ async getGetProspects(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProspectDTO>>> {
21193
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProspects(options);
21194
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21195
+ const localVarOperationServerBasePath = operationServerMap['ProspectsApi.getGetProspects']?.[localVarOperationServerIndex]?.url;
21196
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21197
+ },
21198
+ /**
21199
+ * Remove From Prospect
21200
+ * @summary Remove From Prospects
21201
+ * @param {string} xeroId Xero ID
21202
+ * @param {boolean} status Status
21203
+ * @param {*} [options] Override http request option.
21204
+ * @throws {RequiredError}
21205
+ */
21206
+ async getRemoveFromProspects(xeroId: string, status: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProspectDTO>> {
21207
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRemoveFromProspects(xeroId, status, options);
21208
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21209
+ const localVarOperationServerBasePath = operationServerMap['ProspectsApi.getRemoveFromProspects']?.[localVarOperationServerIndex]?.url;
21210
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21211
+ },
21212
+ /**
21213
+ * Set Call Back Date
21214
+ * @summary Set Call Back Date
21215
+ * @param {string} xeroId Xero ID
21216
+ * @param {string} date Callback Date
21217
+ * @param {*} [options] Override http request option.
21218
+ * @throws {RequiredError}
21219
+ */
21220
+ async getSetCallback(xeroId: string, date: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProspectDTO>> {
21221
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSetCallback(xeroId, date, options);
21222
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21223
+ const localVarOperationServerBasePath = operationServerMap['ProspectsApi.getSetCallback']?.[localVarOperationServerIndex]?.url;
21224
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21225
+ },
21226
+ }
21227
+ };
21228
+
21229
+ /**
21230
+ * ProspectsApi - factory interface
21231
+ */
21232
+ export const ProspectsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
21233
+ const localVarFp = ProspectsApiFp(configuration)
21234
+ return {
21235
+ /**
21236
+ * Get Prospect
21237
+ * @summary Get Prospect
21238
+ * @param {string} xeroId Xero ID
21239
+ * @param {*} [options] Override http request option.
21240
+ * @throws {RequiredError}
21241
+ */
21242
+ getGetProspect(xeroId: string, options?: RawAxiosRequestConfig): AxiosPromise<ProspectDTO> {
21243
+ return localVarFp.getGetProspect(xeroId, options).then((request) => request(axios, basePath));
21244
+ },
21245
+ /**
21246
+ * Get Prospects
21247
+ * @summary Get Prospects
21248
+ * @param {*} [options] Override http request option.
21249
+ * @throws {RequiredError}
21250
+ */
21251
+ getGetProspects(options?: RawAxiosRequestConfig): AxiosPromise<Array<ProspectDTO>> {
21252
+ return localVarFp.getGetProspects(options).then((request) => request(axios, basePath));
21253
+ },
21254
+ /**
21255
+ * Remove From Prospect
21256
+ * @summary Remove From Prospects
21257
+ * @param {string} xeroId Xero ID
21258
+ * @param {boolean} status Status
21259
+ * @param {*} [options] Override http request option.
21260
+ * @throws {RequiredError}
21261
+ */
21262
+ getRemoveFromProspects(xeroId: string, status: boolean, options?: RawAxiosRequestConfig): AxiosPromise<ProspectDTO> {
21263
+ return localVarFp.getRemoveFromProspects(xeroId, status, options).then((request) => request(axios, basePath));
21264
+ },
21265
+ /**
21266
+ * Set Call Back Date
21267
+ * @summary Set Call Back Date
21268
+ * @param {string} xeroId Xero ID
21269
+ * @param {string} date Callback Date
21270
+ * @param {*} [options] Override http request option.
21271
+ * @throws {RequiredError}
21272
+ */
21273
+ getSetCallback(xeroId: string, date: string, options?: RawAxiosRequestConfig): AxiosPromise<ProspectDTO> {
21274
+ return localVarFp.getSetCallback(xeroId, date, options).then((request) => request(axios, basePath));
21275
+ },
21276
+ };
21277
+ };
21278
+
21279
+ /**
21280
+ * ProspectsApi - object-oriented interface
21281
+ */
21282
+ export class ProspectsApi extends BaseAPI {
21283
+ /**
21284
+ * Get Prospect
21285
+ * @summary Get Prospect
21286
+ * @param {string} xeroId Xero ID
21287
+ * @param {*} [options] Override http request option.
21288
+ * @throws {RequiredError}
21289
+ */
21290
+ public getGetProspect(xeroId: string, options?: RawAxiosRequestConfig) {
21291
+ return ProspectsApiFp(this.configuration).getGetProspect(xeroId, options).then((request) => request(this.axios, this.basePath));
21292
+ }
21293
+
21294
+ /**
21295
+ * Get Prospects
21296
+ * @summary Get Prospects
21297
+ * @param {*} [options] Override http request option.
21298
+ * @throws {RequiredError}
21299
+ */
21300
+ public getGetProspects(options?: RawAxiosRequestConfig) {
21301
+ return ProspectsApiFp(this.configuration).getGetProspects(options).then((request) => request(this.axios, this.basePath));
21302
+ }
21303
+
21304
+ /**
21305
+ * Remove From Prospect
21306
+ * @summary Remove From Prospects
21307
+ * @param {string} xeroId Xero ID
21308
+ * @param {boolean} status Status
21309
+ * @param {*} [options] Override http request option.
21310
+ * @throws {RequiredError}
21311
+ */
21312
+ public getRemoveFromProspects(xeroId: string, status: boolean, options?: RawAxiosRequestConfig) {
21313
+ return ProspectsApiFp(this.configuration).getRemoveFromProspects(xeroId, status, options).then((request) => request(this.axios, this.basePath));
21314
+ }
21315
+
21316
+ /**
21317
+ * Set Call Back Date
21318
+ * @summary Set Call Back Date
21319
+ * @param {string} xeroId Xero ID
21320
+ * @param {string} date Callback Date
21321
+ * @param {*} [options] Override http request option.
21322
+ * @throws {RequiredError}
21323
+ */
21324
+ public getSetCallback(xeroId: string, date: string, options?: RawAxiosRequestConfig) {
21325
+ return ProspectsApiFp(this.configuration).getSetCallback(xeroId, date, options).then((request) => request(this.axios, this.basePath));
21326
+ }
21327
+ }
21328
+
21329
+
21330
+
20919
21331
  /**
20920
21332
  * ProvisioningApi - axios parameter creator
20921
21333
  */