@emilgroup/public-api-sdk-node 1.22.0 → 1.27.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 +3 -0
- package/README.md +2 -2
- package/api/documents-api.ts +114 -0
- package/api/products-api.ts +120 -0
- package/dist/api/documents-api.d.ts +64 -0
- package/dist/api/documents-api.js +98 -0
- package/dist/api/products-api.d.ts +66 -0
- package/dist/api/products-api.js +99 -0
- package/dist/models/calculate-product-fields-request-dto.d.ts +31 -0
- package/dist/models/calculate-product-fields-request-dto.js +15 -0
- package/dist/models/calculate-product-fields-response-class.d.ts +25 -0
- package/dist/models/calculate-product-fields-response-class.js +15 -0
- package/dist/models/create-estimated-invoice-response-class.d.ts +8 -1
- package/dist/models/create-lead-request-dto.d.ts +7 -7
- package/dist/models/document-class.d.ts +6 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/inline-response200.d.ts +6 -6
- package/dist/models/inline-response503.d.ts +6 -6
- package/dist/models/policy-object-request-dto.d.ts +1 -1
- package/dist/models/policy-object-response-class.d.ts +36 -0
- package/dist/models/policy-object-response-class.js +15 -0
- package/dist/models/product-document-class.d.ts +7 -7
- package/dist/models/update-lead-request-dto.d.ts +5 -5
- package/models/calculate-product-fields-request-dto.ts +37 -0
- package/models/calculate-product-fields-response-class.ts +31 -0
- package/models/create-estimated-invoice-response-class.ts +8 -1
- package/models/create-lead-request-dto.ts +7 -7
- package/models/document-class.ts +6 -0
- package/models/index.ts +3 -0
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/policy-object-request-dto.ts +1 -1
- package/models/policy-object-response-class.ts +42 -0
- package/models/product-document-class.ts +7 -7
- package/models/update-lead-request-dto.ts +5 -5
- package/package.json +2 -2
package/.openapi-generator/FILES
CHANGED
|
@@ -18,6 +18,8 @@ index.ts
|
|
|
18
18
|
models/address-completion-item-class.ts
|
|
19
19
|
models/address-completion-response-class.ts
|
|
20
20
|
models/address-field-score-class.ts
|
|
21
|
+
models/calculate-product-fields-request-dto.ts
|
|
22
|
+
models/calculate-product-fields-response-class.ts
|
|
21
23
|
models/complete-braintree-payment-setup-request-dto.ts
|
|
22
24
|
models/complete-email-verification-dto.ts
|
|
23
25
|
models/complete-email-verification-response-class.ts
|
|
@@ -69,6 +71,7 @@ models/list-product-documents-response-class.ts
|
|
|
69
71
|
models/list-products-response-class.ts
|
|
70
72
|
models/payment-method-class.ts
|
|
71
73
|
models/policy-object-request-dto.ts
|
|
74
|
+
models/policy-object-response-class.ts
|
|
72
75
|
models/premium-override-dto.ts
|
|
73
76
|
models/premium-override-request-dto.ts
|
|
74
77
|
models/product-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/public-api-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/public-api-sdk-node@1.27.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/public-api-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/public-api-sdk-node@1.27.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
package/api/documents-api.ts
CHANGED
|
@@ -89,6 +89,55 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
89
89
|
options: localVarRequestOptions,
|
|
90
90
|
};
|
|
91
91
|
},
|
|
92
|
+
/**
|
|
93
|
+
* This will delete a document for a lead by lead code and document code.Documents which were created within last 24 hours can be deleted.
|
|
94
|
+
* @summary Delete a document
|
|
95
|
+
* @param {string} leadCode
|
|
96
|
+
* @param {string} code
|
|
97
|
+
* @param {string} [authorization] Bearer Token
|
|
98
|
+
* @param {*} [options] Override http request option.
|
|
99
|
+
* @throws {RequiredError}
|
|
100
|
+
*/
|
|
101
|
+
deleteDocuments: async (leadCode: string, code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
102
|
+
// verify required parameter 'leadCode' is not null or undefined
|
|
103
|
+
assertParamExists('deleteDocuments', 'leadCode', leadCode)
|
|
104
|
+
// verify required parameter 'code' is not null or undefined
|
|
105
|
+
assertParamExists('deleteDocuments', 'code', code)
|
|
106
|
+
const localVarPath = `/publicapi/v1/documents/{code}/lead/{leadCode}`
|
|
107
|
+
.replace(`{${"leadCode"}}`, encodeURIComponent(String(leadCode)))
|
|
108
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
109
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
110
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
111
|
+
let baseOptions;
|
|
112
|
+
let baseAccessToken;
|
|
113
|
+
if (configuration) {
|
|
114
|
+
baseOptions = configuration.baseOptions;
|
|
115
|
+
baseAccessToken = configuration.accessToken;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
119
|
+
const localVarHeaderParameter = {} as any;
|
|
120
|
+
const localVarQueryParameter = {} as any;
|
|
121
|
+
|
|
122
|
+
// authentication bearer required
|
|
123
|
+
// http bearer authentication required
|
|
124
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
125
|
+
|
|
126
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
127
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
133
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
135
|
+
|
|
136
|
+
return {
|
|
137
|
+
url: toPathString(localVarUrlObj),
|
|
138
|
+
options: localVarRequestOptions,
|
|
139
|
+
};
|
|
140
|
+
},
|
|
92
141
|
/**
|
|
93
142
|
* Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
|
|
94
143
|
* @summary Download a document
|
|
@@ -395,6 +444,19 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
395
444
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createTemporaryDocument(createDocumentRequestDto, authorization, options);
|
|
396
445
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
397
446
|
},
|
|
447
|
+
/**
|
|
448
|
+
* This will delete a document for a lead by lead code and document code.Documents which were created within last 24 hours can be deleted.
|
|
449
|
+
* @summary Delete a document
|
|
450
|
+
* @param {string} leadCode
|
|
451
|
+
* @param {string} code
|
|
452
|
+
* @param {string} [authorization] Bearer Token
|
|
453
|
+
* @param {*} [options] Override http request option.
|
|
454
|
+
* @throws {RequiredError}
|
|
455
|
+
*/
|
|
456
|
+
async deleteDocuments(leadCode: string, code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
457
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDocuments(leadCode, code, authorization, options);
|
|
458
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
459
|
+
},
|
|
398
460
|
/**
|
|
399
461
|
* Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
|
|
400
462
|
* @summary Download a document
|
|
@@ -487,6 +549,18 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
487
549
|
createTemporaryDocument(createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
488
550
|
return localVarFp.createTemporaryDocument(createDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
489
551
|
},
|
|
552
|
+
/**
|
|
553
|
+
* This will delete a document for a lead by lead code and document code.Documents which were created within last 24 hours can be deleted.
|
|
554
|
+
* @summary Delete a document
|
|
555
|
+
* @param {string} leadCode
|
|
556
|
+
* @param {string} code
|
|
557
|
+
* @param {string} [authorization] Bearer Token
|
|
558
|
+
* @param {*} [options] Override http request option.
|
|
559
|
+
* @throws {RequiredError}
|
|
560
|
+
*/
|
|
561
|
+
deleteDocuments(leadCode: string, code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
562
|
+
return localVarFp.deleteDocuments(leadCode, code, authorization, options).then((request) => request(axios, basePath));
|
|
563
|
+
},
|
|
490
564
|
/**
|
|
491
565
|
* Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
|
|
492
566
|
* @summary Download a document
|
|
@@ -577,6 +651,34 @@ export interface DocumentsApiCreateTemporaryDocumentRequest {
|
|
|
577
651
|
readonly authorization?: string
|
|
578
652
|
}
|
|
579
653
|
|
|
654
|
+
/**
|
|
655
|
+
* Request parameters for deleteDocuments operation in DocumentsApi.
|
|
656
|
+
* @export
|
|
657
|
+
* @interface DocumentsApiDeleteDocumentsRequest
|
|
658
|
+
*/
|
|
659
|
+
export interface DocumentsApiDeleteDocumentsRequest {
|
|
660
|
+
/**
|
|
661
|
+
*
|
|
662
|
+
* @type {string}
|
|
663
|
+
* @memberof DocumentsApiDeleteDocuments
|
|
664
|
+
*/
|
|
665
|
+
readonly leadCode: string
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
*
|
|
669
|
+
* @type {string}
|
|
670
|
+
* @memberof DocumentsApiDeleteDocuments
|
|
671
|
+
*/
|
|
672
|
+
readonly code: string
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* Bearer Token
|
|
676
|
+
* @type {string}
|
|
677
|
+
* @memberof DocumentsApiDeleteDocuments
|
|
678
|
+
*/
|
|
679
|
+
readonly authorization?: string
|
|
680
|
+
}
|
|
681
|
+
|
|
580
682
|
/**
|
|
581
683
|
* Request parameters for downloadDocument operation in DocumentsApi.
|
|
582
684
|
* @export
|
|
@@ -778,6 +880,18 @@ export class DocumentsApi extends BaseAPI {
|
|
|
778
880
|
return DocumentsApiFp(this.configuration).createTemporaryDocument(requestParameters.createDocumentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
779
881
|
}
|
|
780
882
|
|
|
883
|
+
/**
|
|
884
|
+
* This will delete a document for a lead by lead code and document code.Documents which were created within last 24 hours can be deleted.
|
|
885
|
+
* @summary Delete a document
|
|
886
|
+
* @param {DocumentsApiDeleteDocumentsRequest} requestParameters Request parameters.
|
|
887
|
+
* @param {*} [options] Override http request option.
|
|
888
|
+
* @throws {RequiredError}
|
|
889
|
+
* @memberof DocumentsApi
|
|
890
|
+
*/
|
|
891
|
+
public deleteDocuments(requestParameters: DocumentsApiDeleteDocumentsRequest, options?: AxiosRequestConfig) {
|
|
892
|
+
return DocumentsApiFp(this.configuration).deleteDocuments(requestParameters.leadCode, requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
893
|
+
}
|
|
894
|
+
|
|
781
895
|
/**
|
|
782
896
|
* Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
|
|
783
897
|
* @summary Download a document
|
package/api/products-api.ts
CHANGED
|
@@ -21,6 +21,10 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
+
import { CalculateProductFieldsRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CalculateProductFieldsResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
24
28
|
import { CreateCustomApplicationRequestDto } from '../models';
|
|
25
29
|
// @ts-ignore
|
|
26
30
|
import { CreateCustomApplicationResponseClass } from '../models';
|
|
@@ -48,6 +52,57 @@ const FormData = require('form-data');
|
|
|
48
52
|
*/
|
|
49
53
|
export const ProductsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
50
54
|
return {
|
|
55
|
+
/**
|
|
56
|
+
* This will calculate product fields.
|
|
57
|
+
* @summary Create the product fields
|
|
58
|
+
* @param {string} productCode
|
|
59
|
+
* @param {CalculateProductFieldsRequestDto} calculateProductFieldsRequestDto
|
|
60
|
+
* @param {string} [authorization] Bearer Token
|
|
61
|
+
* @param {*} [options] Override http request option.
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
*/
|
|
64
|
+
calculateProductFields: async (productCode: string, calculateProductFieldsRequestDto: CalculateProductFieldsRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
65
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
66
|
+
assertParamExists('calculateProductFields', 'productCode', productCode)
|
|
67
|
+
// verify required parameter 'calculateProductFieldsRequestDto' is not null or undefined
|
|
68
|
+
assertParamExists('calculateProductFields', 'calculateProductFieldsRequestDto', calculateProductFieldsRequestDto)
|
|
69
|
+
const localVarPath = `/publicapi/v1/products/{product_code}/calculate-product-fields`
|
|
70
|
+
.replace(`{${"product_code"}}`, encodeURIComponent(String(productCode)));
|
|
71
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
72
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
73
|
+
let baseOptions;
|
|
74
|
+
let baseAccessToken;
|
|
75
|
+
if (configuration) {
|
|
76
|
+
baseOptions = configuration.baseOptions;
|
|
77
|
+
baseAccessToken = configuration.accessToken;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
81
|
+
const localVarHeaderParameter = {} as any;
|
|
82
|
+
const localVarQueryParameter = {} as any;
|
|
83
|
+
|
|
84
|
+
// authentication bearer required
|
|
85
|
+
// http bearer authentication required
|
|
86
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
87
|
+
|
|
88
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
89
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
95
|
+
|
|
96
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
97
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
98
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
99
|
+
localVarRequestOptions.data = serializeDataIfNeeded(calculateProductFieldsRequestDto, localVarRequestOptions, configuration)
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
url: toPathString(localVarUrlObj),
|
|
103
|
+
options: localVarRequestOptions,
|
|
104
|
+
};
|
|
105
|
+
},
|
|
51
106
|
/**
|
|
52
107
|
* This will create an invoice product.
|
|
53
108
|
* @summary Create the invoice product
|
|
@@ -414,6 +469,19 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
414
469
|
export const ProductsApiFp = function(configuration?: Configuration) {
|
|
415
470
|
const localVarAxiosParamCreator = ProductsApiAxiosParamCreator(configuration)
|
|
416
471
|
return {
|
|
472
|
+
/**
|
|
473
|
+
* This will calculate product fields.
|
|
474
|
+
* @summary Create the product fields
|
|
475
|
+
* @param {string} productCode
|
|
476
|
+
* @param {CalculateProductFieldsRequestDto} calculateProductFieldsRequestDto
|
|
477
|
+
* @param {string} [authorization] Bearer Token
|
|
478
|
+
* @param {*} [options] Override http request option.
|
|
479
|
+
* @throws {RequiredError}
|
|
480
|
+
*/
|
|
481
|
+
async calculateProductFields(productCode: string, calculateProductFieldsRequestDto: CalculateProductFieldsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalculateProductFieldsResponseClass>> {
|
|
482
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.calculateProductFields(productCode, calculateProductFieldsRequestDto, authorization, options);
|
|
483
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
484
|
+
},
|
|
417
485
|
/**
|
|
418
486
|
* This will create an invoice product.
|
|
419
487
|
* @summary Create the invoice product
|
|
@@ -515,6 +583,18 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
515
583
|
export const ProductsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
516
584
|
const localVarFp = ProductsApiFp(configuration)
|
|
517
585
|
return {
|
|
586
|
+
/**
|
|
587
|
+
* This will calculate product fields.
|
|
588
|
+
* @summary Create the product fields
|
|
589
|
+
* @param {string} productCode
|
|
590
|
+
* @param {CalculateProductFieldsRequestDto} calculateProductFieldsRequestDto
|
|
591
|
+
* @param {string} [authorization] Bearer Token
|
|
592
|
+
* @param {*} [options] Override http request option.
|
|
593
|
+
* @throws {RequiredError}
|
|
594
|
+
*/
|
|
595
|
+
calculateProductFields(productCode: string, calculateProductFieldsRequestDto: CalculateProductFieldsRequestDto, authorization?: string, options?: any): AxiosPromise<CalculateProductFieldsResponseClass> {
|
|
596
|
+
return localVarFp.calculateProductFields(productCode, calculateProductFieldsRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
597
|
+
},
|
|
518
598
|
/**
|
|
519
599
|
* This will create an invoice product.
|
|
520
600
|
* @summary Create the invoice product
|
|
@@ -602,6 +682,34 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
602
682
|
};
|
|
603
683
|
};
|
|
604
684
|
|
|
685
|
+
/**
|
|
686
|
+
* Request parameters for calculateProductFields operation in ProductsApi.
|
|
687
|
+
* @export
|
|
688
|
+
* @interface ProductsApiCalculateProductFieldsRequest
|
|
689
|
+
*/
|
|
690
|
+
export interface ProductsApiCalculateProductFieldsRequest {
|
|
691
|
+
/**
|
|
692
|
+
*
|
|
693
|
+
* @type {string}
|
|
694
|
+
* @memberof ProductsApiCalculateProductFields
|
|
695
|
+
*/
|
|
696
|
+
readonly productCode: string
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
*
|
|
700
|
+
* @type {CalculateProductFieldsRequestDto}
|
|
701
|
+
* @memberof ProductsApiCalculateProductFields
|
|
702
|
+
*/
|
|
703
|
+
readonly calculateProductFieldsRequestDto: CalculateProductFieldsRequestDto
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* Bearer Token
|
|
707
|
+
* @type {string}
|
|
708
|
+
* @memberof ProductsApiCalculateProductFields
|
|
709
|
+
*/
|
|
710
|
+
readonly authorization?: string
|
|
711
|
+
}
|
|
712
|
+
|
|
605
713
|
/**
|
|
606
714
|
* Request parameters for createEstimatedInvoice operation in ProductsApi.
|
|
607
715
|
* @export
|
|
@@ -805,6 +913,18 @@ export interface ProductsApiListProductsRequest {
|
|
|
805
913
|
* @extends {BaseAPI}
|
|
806
914
|
*/
|
|
807
915
|
export class ProductsApi extends BaseAPI {
|
|
916
|
+
/**
|
|
917
|
+
* This will calculate product fields.
|
|
918
|
+
* @summary Create the product fields
|
|
919
|
+
* @param {ProductsApiCalculateProductFieldsRequest} requestParameters Request parameters.
|
|
920
|
+
* @param {*} [options] Override http request option.
|
|
921
|
+
* @throws {RequiredError}
|
|
922
|
+
* @memberof ProductsApi
|
|
923
|
+
*/
|
|
924
|
+
public calculateProductFields(requestParameters: ProductsApiCalculateProductFieldsRequest, options?: AxiosRequestConfig) {
|
|
925
|
+
return ProductsApiFp(this.configuration).calculateProductFields(requestParameters.productCode, requestParameters.calculateProductFieldsRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
926
|
+
}
|
|
927
|
+
|
|
808
928
|
/**
|
|
809
929
|
* This will create an invoice product.
|
|
810
930
|
* @summary Create the invoice product
|
|
@@ -32,6 +32,16 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
32
32
|
* @throws {RequiredError}
|
|
33
33
|
*/
|
|
34
34
|
createTemporaryDocument: (createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
|
+
/**
|
|
36
|
+
* This will delete a document for a lead by lead code and document code.Documents which were created within last 24 hours can be deleted.
|
|
37
|
+
* @summary Delete a document
|
|
38
|
+
* @param {string} leadCode
|
|
39
|
+
* @param {string} code
|
|
40
|
+
* @param {string} [authorization] Bearer Token
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
deleteDocuments: (leadCode: string, code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
45
|
/**
|
|
36
46
|
* Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
|
|
37
47
|
* @summary Download a document
|
|
@@ -103,6 +113,16 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
|
|
|
103
113
|
* @throws {RequiredError}
|
|
104
114
|
*/
|
|
105
115
|
createTemporaryDocument(createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
116
|
+
/**
|
|
117
|
+
* This will delete a document for a lead by lead code and document code.Documents which were created within last 24 hours can be deleted.
|
|
118
|
+
* @summary Delete a document
|
|
119
|
+
* @param {string} leadCode
|
|
120
|
+
* @param {string} code
|
|
121
|
+
* @param {string} [authorization] Bearer Token
|
|
122
|
+
* @param {*} [options] Override http request option.
|
|
123
|
+
* @throws {RequiredError}
|
|
124
|
+
*/
|
|
125
|
+
deleteDocuments(leadCode: string, code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
106
126
|
/**
|
|
107
127
|
* Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
|
|
108
128
|
* @summary Download a document
|
|
@@ -174,6 +194,16 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
|
|
|
174
194
|
* @throws {RequiredError}
|
|
175
195
|
*/
|
|
176
196
|
createTemporaryDocument(createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
|
|
197
|
+
/**
|
|
198
|
+
* This will delete a document for a lead by lead code and document code.Documents which were created within last 24 hours can be deleted.
|
|
199
|
+
* @summary Delete a document
|
|
200
|
+
* @param {string} leadCode
|
|
201
|
+
* @param {string} code
|
|
202
|
+
* @param {string} [authorization] Bearer Token
|
|
203
|
+
* @param {*} [options] Override http request option.
|
|
204
|
+
* @throws {RequiredError}
|
|
205
|
+
*/
|
|
206
|
+
deleteDocuments(leadCode: string, code: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
177
207
|
/**
|
|
178
208
|
* Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
|
|
179
209
|
* @summary Download a document
|
|
@@ -250,6 +280,31 @@ export interface DocumentsApiCreateTemporaryDocumentRequest {
|
|
|
250
280
|
*/
|
|
251
281
|
readonly authorization?: string;
|
|
252
282
|
}
|
|
283
|
+
/**
|
|
284
|
+
* Request parameters for deleteDocuments operation in DocumentsApi.
|
|
285
|
+
* @export
|
|
286
|
+
* @interface DocumentsApiDeleteDocumentsRequest
|
|
287
|
+
*/
|
|
288
|
+
export interface DocumentsApiDeleteDocumentsRequest {
|
|
289
|
+
/**
|
|
290
|
+
*
|
|
291
|
+
* @type {string}
|
|
292
|
+
* @memberof DocumentsApiDeleteDocuments
|
|
293
|
+
*/
|
|
294
|
+
readonly leadCode: string;
|
|
295
|
+
/**
|
|
296
|
+
*
|
|
297
|
+
* @type {string}
|
|
298
|
+
* @memberof DocumentsApiDeleteDocuments
|
|
299
|
+
*/
|
|
300
|
+
readonly code: string;
|
|
301
|
+
/**
|
|
302
|
+
* Bearer Token
|
|
303
|
+
* @type {string}
|
|
304
|
+
* @memberof DocumentsApiDeleteDocuments
|
|
305
|
+
*/
|
|
306
|
+
readonly authorization?: string;
|
|
307
|
+
}
|
|
253
308
|
/**
|
|
254
309
|
* Request parameters for downloadDocument operation in DocumentsApi.
|
|
255
310
|
* @export
|
|
@@ -427,6 +482,15 @@ export declare class DocumentsApi extends BaseAPI {
|
|
|
427
482
|
* @memberof DocumentsApi
|
|
428
483
|
*/
|
|
429
484
|
createTemporaryDocument(requestParameters: DocumentsApiCreateTemporaryDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
485
|
+
/**
|
|
486
|
+
* This will delete a document for a lead by lead code and document code.Documents which were created within last 24 hours can be deleted.
|
|
487
|
+
* @summary Delete a document
|
|
488
|
+
* @param {DocumentsApiDeleteDocumentsRequest} requestParameters Request parameters.
|
|
489
|
+
* @param {*} [options] Override http request option.
|
|
490
|
+
* @throws {RequiredError}
|
|
491
|
+
* @memberof DocumentsApi
|
|
492
|
+
*/
|
|
493
|
+
deleteDocuments(requestParameters: DocumentsApiDeleteDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
430
494
|
/**
|
|
431
495
|
* Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
|
|
432
496
|
* @summary Download a document
|
|
@@ -145,6 +145,58 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
145
145
|
});
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
|
+
/**
|
|
149
|
+
* This will delete a document for a lead by lead code and document code.Documents which were created within last 24 hours can be deleted.
|
|
150
|
+
* @summary Delete a document
|
|
151
|
+
* @param {string} leadCode
|
|
152
|
+
* @param {string} code
|
|
153
|
+
* @param {string} [authorization] Bearer Token
|
|
154
|
+
* @param {*} [options] Override http request option.
|
|
155
|
+
* @throws {RequiredError}
|
|
156
|
+
*/
|
|
157
|
+
deleteDocuments: function (leadCode, code, authorization, options) {
|
|
158
|
+
if (options === void 0) { options = {}; }
|
|
159
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
160
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
161
|
+
return __generator(this, function (_a) {
|
|
162
|
+
switch (_a.label) {
|
|
163
|
+
case 0:
|
|
164
|
+
// verify required parameter 'leadCode' is not null or undefined
|
|
165
|
+
(0, common_1.assertParamExists)('deleteDocuments', 'leadCode', leadCode);
|
|
166
|
+
// verify required parameter 'code' is not null or undefined
|
|
167
|
+
(0, common_1.assertParamExists)('deleteDocuments', 'code', code);
|
|
168
|
+
localVarPath = "/publicapi/v1/documents/{code}/lead/{leadCode}"
|
|
169
|
+
.replace("{".concat("leadCode", "}"), encodeURIComponent(String(leadCode)))
|
|
170
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
171
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
172
|
+
if (configuration) {
|
|
173
|
+
baseOptions = configuration.baseOptions;
|
|
174
|
+
baseAccessToken = configuration.accessToken;
|
|
175
|
+
}
|
|
176
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
177
|
+
localVarHeaderParameter = {};
|
|
178
|
+
localVarQueryParameter = {};
|
|
179
|
+
// authentication bearer required
|
|
180
|
+
// http bearer authentication required
|
|
181
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
182
|
+
case 1:
|
|
183
|
+
// authentication bearer required
|
|
184
|
+
// http bearer authentication required
|
|
185
|
+
_a.sent();
|
|
186
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
187
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
188
|
+
}
|
|
189
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
190
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
191
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
192
|
+
return [2 /*return*/, {
|
|
193
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
194
|
+
options: localVarRequestOptions,
|
|
195
|
+
}];
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
},
|
|
148
200
|
/**
|
|
149
201
|
* Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
|
|
150
202
|
* @summary Download a document
|
|
@@ -463,6 +515,28 @@ var DocumentsApiFp = function (configuration) {
|
|
|
463
515
|
});
|
|
464
516
|
});
|
|
465
517
|
},
|
|
518
|
+
/**
|
|
519
|
+
* This will delete a document for a lead by lead code and document code.Documents which were created within last 24 hours can be deleted.
|
|
520
|
+
* @summary Delete a document
|
|
521
|
+
* @param {string} leadCode
|
|
522
|
+
* @param {string} code
|
|
523
|
+
* @param {string} [authorization] Bearer Token
|
|
524
|
+
* @param {*} [options] Override http request option.
|
|
525
|
+
* @throws {RequiredError}
|
|
526
|
+
*/
|
|
527
|
+
deleteDocuments: function (leadCode, code, authorization, options) {
|
|
528
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
529
|
+
var localVarAxiosArgs;
|
|
530
|
+
return __generator(this, function (_a) {
|
|
531
|
+
switch (_a.label) {
|
|
532
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDocuments(leadCode, code, authorization, options)];
|
|
533
|
+
case 1:
|
|
534
|
+
localVarAxiosArgs = _a.sent();
|
|
535
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
536
|
+
}
|
|
537
|
+
});
|
|
538
|
+
});
|
|
539
|
+
},
|
|
466
540
|
/**
|
|
467
541
|
* Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
|
|
468
542
|
* @summary Download a document
|
|
@@ -600,6 +674,18 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
600
674
|
createTemporaryDocument: function (createDocumentRequestDto, authorization, options) {
|
|
601
675
|
return localVarFp.createTemporaryDocument(createDocumentRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
602
676
|
},
|
|
677
|
+
/**
|
|
678
|
+
* This will delete a document for a lead by lead code and document code.Documents which were created within last 24 hours can be deleted.
|
|
679
|
+
* @summary Delete a document
|
|
680
|
+
* @param {string} leadCode
|
|
681
|
+
* @param {string} code
|
|
682
|
+
* @param {string} [authorization] Bearer Token
|
|
683
|
+
* @param {*} [options] Override http request option.
|
|
684
|
+
* @throws {RequiredError}
|
|
685
|
+
*/
|
|
686
|
+
deleteDocuments: function (leadCode, code, authorization, options) {
|
|
687
|
+
return localVarFp.deleteDocuments(leadCode, code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
688
|
+
},
|
|
603
689
|
/**
|
|
604
690
|
* Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
|
|
605
691
|
* @summary Download a document
|
|
@@ -692,6 +778,18 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
692
778
|
var _this = this;
|
|
693
779
|
return (0, exports.DocumentsApiFp)(this.configuration).createTemporaryDocument(requestParameters.createDocumentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
694
780
|
};
|
|
781
|
+
/**
|
|
782
|
+
* This will delete a document for a lead by lead code and document code.Documents which were created within last 24 hours can be deleted.
|
|
783
|
+
* @summary Delete a document
|
|
784
|
+
* @param {DocumentsApiDeleteDocumentsRequest} requestParameters Request parameters.
|
|
785
|
+
* @param {*} [options] Override http request option.
|
|
786
|
+
* @throws {RequiredError}
|
|
787
|
+
* @memberof DocumentsApi
|
|
788
|
+
*/
|
|
789
|
+
DocumentsApi.prototype.deleteDocuments = function (requestParameters, options) {
|
|
790
|
+
var _this = this;
|
|
791
|
+
return (0, exports.DocumentsApiFp)(this.configuration).deleteDocuments(requestParameters.leadCode, requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
792
|
+
};
|
|
695
793
|
/**
|
|
696
794
|
* Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
|
|
697
795
|
* @summary Download a document
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { CalculateProductFieldsRequestDto } from '../models';
|
|
16
|
+
import { CalculateProductFieldsResponseClass } from '../models';
|
|
15
17
|
import { CreateCustomApplicationRequestDto } from '../models';
|
|
16
18
|
import { CreateCustomApplicationResponseClass } from '../models';
|
|
17
19
|
import { CreateEstimatedInvoiceRequestDto } from '../models';
|
|
@@ -26,6 +28,16 @@ import { ProductFactorForVersionClass } from '../models';
|
|
|
26
28
|
* @export
|
|
27
29
|
*/
|
|
28
30
|
export declare const ProductsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
31
|
+
/**
|
|
32
|
+
* This will calculate product fields.
|
|
33
|
+
* @summary Create the product fields
|
|
34
|
+
* @param {string} productCode
|
|
35
|
+
* @param {CalculateProductFieldsRequestDto} calculateProductFieldsRequestDto
|
|
36
|
+
* @param {string} [authorization] Bearer Token
|
|
37
|
+
* @param {*} [options] Override http request option.
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
*/
|
|
40
|
+
calculateProductFields: (productCode: string, calculateProductFieldsRequestDto: CalculateProductFieldsRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
41
|
/**
|
|
30
42
|
* This will create an invoice product.
|
|
31
43
|
* @summary Create the invoice product
|
|
@@ -102,6 +114,16 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
102
114
|
* @export
|
|
103
115
|
*/
|
|
104
116
|
export declare const ProductsApiFp: (configuration?: Configuration) => {
|
|
117
|
+
/**
|
|
118
|
+
* This will calculate product fields.
|
|
119
|
+
* @summary Create the product fields
|
|
120
|
+
* @param {string} productCode
|
|
121
|
+
* @param {CalculateProductFieldsRequestDto} calculateProductFieldsRequestDto
|
|
122
|
+
* @param {string} [authorization] Bearer Token
|
|
123
|
+
* @param {*} [options] Override http request option.
|
|
124
|
+
* @throws {RequiredError}
|
|
125
|
+
*/
|
|
126
|
+
calculateProductFields(productCode: string, calculateProductFieldsRequestDto: CalculateProductFieldsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalculateProductFieldsResponseClass>>;
|
|
105
127
|
/**
|
|
106
128
|
* This will create an invoice product.
|
|
107
129
|
* @summary Create the invoice product
|
|
@@ -178,6 +200,16 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
|
|
|
178
200
|
* @export
|
|
179
201
|
*/
|
|
180
202
|
export declare const ProductsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
203
|
+
/**
|
|
204
|
+
* This will calculate product fields.
|
|
205
|
+
* @summary Create the product fields
|
|
206
|
+
* @param {string} productCode
|
|
207
|
+
* @param {CalculateProductFieldsRequestDto} calculateProductFieldsRequestDto
|
|
208
|
+
* @param {string} [authorization] Bearer Token
|
|
209
|
+
* @param {*} [options] Override http request option.
|
|
210
|
+
* @throws {RequiredError}
|
|
211
|
+
*/
|
|
212
|
+
calculateProductFields(productCode: string, calculateProductFieldsRequestDto: CalculateProductFieldsRequestDto, authorization?: string, options?: any): AxiosPromise<CalculateProductFieldsResponseClass>;
|
|
181
213
|
/**
|
|
182
214
|
* This will create an invoice product.
|
|
183
215
|
* @summary Create the invoice product
|
|
@@ -249,6 +281,31 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
|
|
|
249
281
|
*/
|
|
250
282
|
listProducts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListProductsResponseClass>;
|
|
251
283
|
};
|
|
284
|
+
/**
|
|
285
|
+
* Request parameters for calculateProductFields operation in ProductsApi.
|
|
286
|
+
* @export
|
|
287
|
+
* @interface ProductsApiCalculateProductFieldsRequest
|
|
288
|
+
*/
|
|
289
|
+
export interface ProductsApiCalculateProductFieldsRequest {
|
|
290
|
+
/**
|
|
291
|
+
*
|
|
292
|
+
* @type {string}
|
|
293
|
+
* @memberof ProductsApiCalculateProductFields
|
|
294
|
+
*/
|
|
295
|
+
readonly productCode: string;
|
|
296
|
+
/**
|
|
297
|
+
*
|
|
298
|
+
* @type {CalculateProductFieldsRequestDto}
|
|
299
|
+
* @memberof ProductsApiCalculateProductFields
|
|
300
|
+
*/
|
|
301
|
+
readonly calculateProductFieldsRequestDto: CalculateProductFieldsRequestDto;
|
|
302
|
+
/**
|
|
303
|
+
* Bearer Token
|
|
304
|
+
* @type {string}
|
|
305
|
+
* @memberof ProductsApiCalculateProductFields
|
|
306
|
+
*/
|
|
307
|
+
readonly authorization?: string;
|
|
308
|
+
}
|
|
252
309
|
/**
|
|
253
310
|
* Request parameters for createEstimatedInvoice operation in ProductsApi.
|
|
254
311
|
* @export
|
|
@@ -431,6 +488,15 @@ export interface ProductsApiListProductsRequest {
|
|
|
431
488
|
* @extends {BaseAPI}
|
|
432
489
|
*/
|
|
433
490
|
export declare class ProductsApi extends BaseAPI {
|
|
491
|
+
/**
|
|
492
|
+
* This will calculate product fields.
|
|
493
|
+
* @summary Create the product fields
|
|
494
|
+
* @param {ProductsApiCalculateProductFieldsRequest} requestParameters Request parameters.
|
|
495
|
+
* @param {*} [options] Override http request option.
|
|
496
|
+
* @throws {RequiredError}
|
|
497
|
+
* @memberof ProductsApi
|
|
498
|
+
*/
|
|
499
|
+
calculateProductFields(requestParameters: ProductsApiCalculateProductFieldsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CalculateProductFieldsResponseClass, any>>;
|
|
434
500
|
/**
|
|
435
501
|
* This will create an invoice product.
|
|
436
502
|
* @summary Create the invoice product
|