yellowgrid-api-ts 3.2.132-dev.0 → 3.2.134-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,103 @@ 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
+ * Order Count
4673
+ */
4674
+ 'orderCount'?: number;
4675
+ }
4676
+
4677
+ export const ProspectDTOStatusEnum = {
4678
+ NoCallBackSet: 'No Call Back Set',
4679
+ CallBackDue: 'Call Back Due',
4680
+ NoOrdersPlaced: 'No Orders Placed',
4681
+ NoOrdersInTheLast4Months: 'No Orders In The Last 4 Months',
4682
+ NoActionRequired: 'No Action Required'
4683
+ } as const;
4684
+
4685
+ export type ProspectDTOStatusEnum = typeof ProspectDTOStatusEnum[keyof typeof ProspectDTOStatusEnum];
4686
+
4687
+ /**
4688
+ * ProspectEntity
4689
+ */
4690
+ export interface ProspectEntity {
4691
+ /**
4692
+ * id
4693
+ */
4694
+ 'id'?: number;
4695
+ /**
4696
+ * status
4697
+ */
4698
+ 'status'?: number;
4699
+ /**
4700
+ * customerId
4701
+ */
4702
+ 'customerId'?: number;
4703
+ /**
4704
+ * companyName
4705
+ */
4706
+ 'companyName'?: string;
4707
+ /**
4708
+ * contactName
4709
+ */
4710
+ 'contactName'?: string;
4711
+ /**
4712
+ * telephone
4713
+ */
4714
+ 'telephone'?: string;
4715
+ /**
4716
+ * email
4717
+ */
4718
+ 'email'?: string;
4719
+ /**
4720
+ * reason
4721
+ */
4722
+ 'reason'?: string;
4723
+ /**
4724
+ * lastOrderDate
4725
+ */
4726
+ 'lastOrderDate'?: string;
4727
+ /**
4728
+ * followUpDate
4729
+ */
4730
+ 'followUpDate'?: string;
4731
+ /**
4732
+ * notes
4733
+ */
4734
+ 'notes'?: string;
4735
+ }
4638
4736
  /**
4639
4737
  * Provisioning Group
4640
4738
  */
@@ -20916,6 +21014,324 @@ export const GetGetLegacyStockListFormatEnum = {
20916
21014
  export type GetGetLegacyStockListFormatEnum = typeof GetGetLegacyStockListFormatEnum[keyof typeof GetGetLegacyStockListFormatEnum];
20917
21015
 
20918
21016
 
21017
+ /**
21018
+ * ProspectsApi - axios parameter creator
21019
+ */
21020
+ export const ProspectsApiAxiosParamCreator = function (configuration?: Configuration) {
21021
+ return {
21022
+ /**
21023
+ * Get Prospect
21024
+ * @summary Get Prospect
21025
+ * @param {string} xeroId Xero ID
21026
+ * @param {*} [options] Override http request option.
21027
+ * @throws {RequiredError}
21028
+ */
21029
+ getGetProspect: async (xeroId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21030
+ // verify required parameter 'xeroId' is not null or undefined
21031
+ assertParamExists('getGetProspect', 'xeroId', xeroId)
21032
+ const localVarPath = `/accounts/prospects/{xero_id}`
21033
+ .replace(`{${"xero_id"}}`, encodeURIComponent(String(xeroId)));
21034
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21035
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21036
+ let baseOptions;
21037
+ if (configuration) {
21038
+ baseOptions = configuration.baseOptions;
21039
+ }
21040
+
21041
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21042
+ const localVarHeaderParameter = {} as any;
21043
+ const localVarQueryParameter = {} as any;
21044
+
21045
+ localVarHeaderParameter['Accept'] = 'application/json';
21046
+
21047
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21048
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21049
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21050
+
21051
+ return {
21052
+ url: toPathString(localVarUrlObj),
21053
+ options: localVarRequestOptions,
21054
+ };
21055
+ },
21056
+ /**
21057
+ * Get Prospects
21058
+ * @summary Get Prospects
21059
+ * @param {*} [options] Override http request option.
21060
+ * @throws {RequiredError}
21061
+ */
21062
+ getGetProspects: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21063
+ const localVarPath = `/accounts/prospects`;
21064
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21065
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21066
+ let baseOptions;
21067
+ if (configuration) {
21068
+ baseOptions = configuration.baseOptions;
21069
+ }
21070
+
21071
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21072
+ const localVarHeaderParameter = {} as any;
21073
+ const localVarQueryParameter = {} as any;
21074
+
21075
+ localVarHeaderParameter['Accept'] = 'application/json';
21076
+
21077
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21078
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21079
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21080
+
21081
+ return {
21082
+ url: toPathString(localVarUrlObj),
21083
+ options: localVarRequestOptions,
21084
+ };
21085
+ },
21086
+ /**
21087
+ * Remove From Prospect
21088
+ * @summary Remove From Prospects
21089
+ * @param {string} xeroId Xero ID
21090
+ * @param {boolean} status Status
21091
+ * @param {*} [options] Override http request option.
21092
+ * @throws {RequiredError}
21093
+ */
21094
+ getRemoveFromProspects: async (xeroId: string, status: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21095
+ // verify required parameter 'xeroId' is not null or undefined
21096
+ assertParamExists('getRemoveFromProspects', 'xeroId', xeroId)
21097
+ // verify required parameter 'status' is not null or undefined
21098
+ assertParamExists('getRemoveFromProspects', 'status', status)
21099
+ const localVarPath = `/accounts/prospects/{xero_id}/remove`
21100
+ .replace(`{${"xero_id"}}`, encodeURIComponent(String(xeroId)));
21101
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21102
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21103
+ let baseOptions;
21104
+ if (configuration) {
21105
+ baseOptions = configuration.baseOptions;
21106
+ }
21107
+
21108
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21109
+ const localVarHeaderParameter = {} as any;
21110
+ const localVarQueryParameter = {} as any;
21111
+
21112
+ if (status !== undefined) {
21113
+ localVarQueryParameter['status'] = status;
21114
+ }
21115
+
21116
+ localVarHeaderParameter['Accept'] = 'application/json';
21117
+
21118
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21119
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21120
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21121
+
21122
+ return {
21123
+ url: toPathString(localVarUrlObj),
21124
+ options: localVarRequestOptions,
21125
+ };
21126
+ },
21127
+ /**
21128
+ * Set Call Back Date
21129
+ * @summary Set Call Back Date
21130
+ * @param {string} xeroId Xero ID
21131
+ * @param {string} date Callback Date
21132
+ * @param {*} [options] Override http request option.
21133
+ * @throws {RequiredError}
21134
+ */
21135
+ getSetCallback: async (xeroId: string, date: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21136
+ // verify required parameter 'xeroId' is not null or undefined
21137
+ assertParamExists('getSetCallback', 'xeroId', xeroId)
21138
+ // verify required parameter 'date' is not null or undefined
21139
+ assertParamExists('getSetCallback', 'date', date)
21140
+ const localVarPath = `/accounts/prospects/{xero_id}/date`
21141
+ .replace(`{${"xero_id"}}`, encodeURIComponent(String(xeroId)));
21142
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21143
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21144
+ let baseOptions;
21145
+ if (configuration) {
21146
+ baseOptions = configuration.baseOptions;
21147
+ }
21148
+
21149
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21150
+ const localVarHeaderParameter = {} as any;
21151
+ const localVarQueryParameter = {} as any;
21152
+
21153
+ if (date !== undefined) {
21154
+ localVarQueryParameter['date'] = date;
21155
+ }
21156
+
21157
+ localVarHeaderParameter['Accept'] = 'application/json';
21158
+
21159
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21160
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21161
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21162
+
21163
+ return {
21164
+ url: toPathString(localVarUrlObj),
21165
+ options: localVarRequestOptions,
21166
+ };
21167
+ },
21168
+ }
21169
+ };
21170
+
21171
+ /**
21172
+ * ProspectsApi - functional programming interface
21173
+ */
21174
+ export const ProspectsApiFp = function(configuration?: Configuration) {
21175
+ const localVarAxiosParamCreator = ProspectsApiAxiosParamCreator(configuration)
21176
+ return {
21177
+ /**
21178
+ * Get Prospect
21179
+ * @summary Get Prospect
21180
+ * @param {string} xeroId Xero ID
21181
+ * @param {*} [options] Override http request option.
21182
+ * @throws {RequiredError}
21183
+ */
21184
+ async getGetProspect(xeroId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProspectDTO>> {
21185
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProspect(xeroId, options);
21186
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21187
+ const localVarOperationServerBasePath = operationServerMap['ProspectsApi.getGetProspect']?.[localVarOperationServerIndex]?.url;
21188
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21189
+ },
21190
+ /**
21191
+ * Get Prospects
21192
+ * @summary Get Prospects
21193
+ * @param {*} [options] Override http request option.
21194
+ * @throws {RequiredError}
21195
+ */
21196
+ async getGetProspects(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProspectDTO>>> {
21197
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProspects(options);
21198
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21199
+ const localVarOperationServerBasePath = operationServerMap['ProspectsApi.getGetProspects']?.[localVarOperationServerIndex]?.url;
21200
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21201
+ },
21202
+ /**
21203
+ * Remove From Prospect
21204
+ * @summary Remove From Prospects
21205
+ * @param {string} xeroId Xero ID
21206
+ * @param {boolean} status Status
21207
+ * @param {*} [options] Override http request option.
21208
+ * @throws {RequiredError}
21209
+ */
21210
+ async getRemoveFromProspects(xeroId: string, status: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProspectDTO>> {
21211
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRemoveFromProspects(xeroId, status, options);
21212
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21213
+ const localVarOperationServerBasePath = operationServerMap['ProspectsApi.getRemoveFromProspects']?.[localVarOperationServerIndex]?.url;
21214
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21215
+ },
21216
+ /**
21217
+ * Set Call Back Date
21218
+ * @summary Set Call Back Date
21219
+ * @param {string} xeroId Xero ID
21220
+ * @param {string} date Callback Date
21221
+ * @param {*} [options] Override http request option.
21222
+ * @throws {RequiredError}
21223
+ */
21224
+ async getSetCallback(xeroId: string, date: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProspectDTO>> {
21225
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSetCallback(xeroId, date, options);
21226
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21227
+ const localVarOperationServerBasePath = operationServerMap['ProspectsApi.getSetCallback']?.[localVarOperationServerIndex]?.url;
21228
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21229
+ },
21230
+ }
21231
+ };
21232
+
21233
+ /**
21234
+ * ProspectsApi - factory interface
21235
+ */
21236
+ export const ProspectsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
21237
+ const localVarFp = ProspectsApiFp(configuration)
21238
+ return {
21239
+ /**
21240
+ * Get Prospect
21241
+ * @summary Get Prospect
21242
+ * @param {string} xeroId Xero ID
21243
+ * @param {*} [options] Override http request option.
21244
+ * @throws {RequiredError}
21245
+ */
21246
+ getGetProspect(xeroId: string, options?: RawAxiosRequestConfig): AxiosPromise<ProspectDTO> {
21247
+ return localVarFp.getGetProspect(xeroId, options).then((request) => request(axios, basePath));
21248
+ },
21249
+ /**
21250
+ * Get Prospects
21251
+ * @summary Get Prospects
21252
+ * @param {*} [options] Override http request option.
21253
+ * @throws {RequiredError}
21254
+ */
21255
+ getGetProspects(options?: RawAxiosRequestConfig): AxiosPromise<Array<ProspectDTO>> {
21256
+ return localVarFp.getGetProspects(options).then((request) => request(axios, basePath));
21257
+ },
21258
+ /**
21259
+ * Remove From Prospect
21260
+ * @summary Remove From Prospects
21261
+ * @param {string} xeroId Xero ID
21262
+ * @param {boolean} status Status
21263
+ * @param {*} [options] Override http request option.
21264
+ * @throws {RequiredError}
21265
+ */
21266
+ getRemoveFromProspects(xeroId: string, status: boolean, options?: RawAxiosRequestConfig): AxiosPromise<ProspectDTO> {
21267
+ return localVarFp.getRemoveFromProspects(xeroId, status, options).then((request) => request(axios, basePath));
21268
+ },
21269
+ /**
21270
+ * Set Call Back Date
21271
+ * @summary Set Call Back Date
21272
+ * @param {string} xeroId Xero ID
21273
+ * @param {string} date Callback Date
21274
+ * @param {*} [options] Override http request option.
21275
+ * @throws {RequiredError}
21276
+ */
21277
+ getSetCallback(xeroId: string, date: string, options?: RawAxiosRequestConfig): AxiosPromise<ProspectDTO> {
21278
+ return localVarFp.getSetCallback(xeroId, date, options).then((request) => request(axios, basePath));
21279
+ },
21280
+ };
21281
+ };
21282
+
21283
+ /**
21284
+ * ProspectsApi - object-oriented interface
21285
+ */
21286
+ export class ProspectsApi extends BaseAPI {
21287
+ /**
21288
+ * Get Prospect
21289
+ * @summary Get Prospect
21290
+ * @param {string} xeroId Xero ID
21291
+ * @param {*} [options] Override http request option.
21292
+ * @throws {RequiredError}
21293
+ */
21294
+ public getGetProspect(xeroId: string, options?: RawAxiosRequestConfig) {
21295
+ return ProspectsApiFp(this.configuration).getGetProspect(xeroId, options).then((request) => request(this.axios, this.basePath));
21296
+ }
21297
+
21298
+ /**
21299
+ * Get Prospects
21300
+ * @summary Get Prospects
21301
+ * @param {*} [options] Override http request option.
21302
+ * @throws {RequiredError}
21303
+ */
21304
+ public getGetProspects(options?: RawAxiosRequestConfig) {
21305
+ return ProspectsApiFp(this.configuration).getGetProspects(options).then((request) => request(this.axios, this.basePath));
21306
+ }
21307
+
21308
+ /**
21309
+ * Remove From Prospect
21310
+ * @summary Remove From Prospects
21311
+ * @param {string} xeroId Xero ID
21312
+ * @param {boolean} status Status
21313
+ * @param {*} [options] Override http request option.
21314
+ * @throws {RequiredError}
21315
+ */
21316
+ public getRemoveFromProspects(xeroId: string, status: boolean, options?: RawAxiosRequestConfig) {
21317
+ return ProspectsApiFp(this.configuration).getRemoveFromProspects(xeroId, status, options).then((request) => request(this.axios, this.basePath));
21318
+ }
21319
+
21320
+ /**
21321
+ * Set Call Back Date
21322
+ * @summary Set Call Back Date
21323
+ * @param {string} xeroId Xero ID
21324
+ * @param {string} date Callback Date
21325
+ * @param {*} [options] Override http request option.
21326
+ * @throws {RequiredError}
21327
+ */
21328
+ public getSetCallback(xeroId: string, date: string, options?: RawAxiosRequestConfig) {
21329
+ return ProspectsApiFp(this.configuration).getSetCallback(xeroId, date, options).then((request) => request(this.axios, this.basePath));
21330
+ }
21331
+ }
21332
+
21333
+
21334
+
20919
21335
  /**
20920
21336
  * ProvisioningApi - axios parameter creator
20921
21337
  */