@emilgroup/insurance-sdk-node 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +97 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +51 -0
- package/api/insured-object-types-api.ts +236 -0
- package/api/insured-objects-api.ts +446 -0
- package/api/leads-api.ts +402 -0
- package/api/policies-api.ts +580 -0
- package/api/products-api.ts +3027 -0
- package/api.ts +44 -0
- package/base.ts +189 -0
- package/common.ts +138 -0
- package/configuration.ts +109 -0
- package/dist/api/insured-object-types-api.d.ts +141 -0
- package/dist/api/insured-object-types-api.js +258 -0
- package/dist/api/insured-objects-api.d.ts +254 -0
- package/dist/api/insured-objects-api.js +443 -0
- package/dist/api/leads-api.d.ts +225 -0
- package/dist/api/leads-api.js +427 -0
- package/dist/api/policies-api.d.ts +329 -0
- package/dist/api/policies-api.js +548 -0
- package/dist/api/products-api.d.ts +1683 -0
- package/dist/api/products-api.js +2521 -0
- package/dist/api.d.ts +20 -0
- package/dist/api.js +40 -0
- package/dist/base.d.ts +69 -0
- package/dist/base.js +252 -0
- package/dist/common.d.ts +66 -0
- package/dist/common.js +244 -0
- package/dist/configuration.d.ts +90 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +35 -0
- package/dist/models/calculate-custom-premium-request-dto.d.ts +34 -0
- package/dist/models/calculate-custom-premium-request-dto.js +19 -0
- package/dist/models/calculate-premium-request-dto.d.ts +31 -0
- package/dist/models/calculate-premium-request-dto.js +15 -0
- package/dist/models/create-account-request-dto.d.ts +84 -0
- package/dist/models/create-account-request-dto.js +15 -0
- package/dist/models/create-bank-account-request-dto.d.ts +30 -0
- package/dist/models/create-bank-account-request-dto.js +15 -0
- package/dist/models/create-claim-request-dto.d.ts +83 -0
- package/dist/models/create-claim-request-dto.js +25 -0
- package/dist/models/create-custom-application-request-dto.d.ts +40 -0
- package/dist/models/create-custom-application-request-dto.js +19 -0
- package/dist/models/create-dummy-policy-request-dto.d.ts +31 -0
- package/dist/models/create-dummy-policy-request-dto.js +15 -0
- package/dist/models/create-insured-object-request-dto.d.ts +42 -0
- package/dist/models/create-insured-object-request-dto.js +15 -0
- package/dist/models/create-insured-object-response-class.d.ts +25 -0
- package/dist/models/create-insured-object-response-class.js +15 -0
- package/dist/models/create-lead-request-dto.d.ts +71 -0
- package/dist/models/create-lead-request-dto.js +22 -0
- package/dist/models/create-policy-request-dto.d.ts +37 -0
- package/dist/models/create-policy-request-dto.js +15 -0
- package/dist/models/create-policy-response-class.d.ts +25 -0
- package/dist/models/create-policy-response-class.js +15 -0
- package/dist/models/create-premium-formula-request-dto.d.ts +65 -0
- package/dist/models/create-premium-formula-request-dto.js +25 -0
- package/dist/models/create-premium-formula-response-class.d.ts +25 -0
- package/dist/models/create-premium-formula-response-class.js +15 -0
- package/dist/models/create-product-field-request-dto.d.ts +113 -0
- package/dist/models/create-product-field-request-dto.js +20 -0
- package/dist/models/create-product-field-response-class.d.ts +25 -0
- package/dist/models/create-product-field-response-class.js +15 -0
- package/dist/models/create-product-request-dto.d.ts +57 -0
- package/dist/models/create-product-request-dto.js +30 -0
- package/dist/models/create-product-response-class.d.ts +25 -0
- package/dist/models/create-product-response-class.js +15 -0
- package/dist/models/csv-product-factor-dto.d.ts +48 -0
- package/dist/models/csv-product-factor-dto.js +15 -0
- package/dist/models/delete-request-dto.d.ts +24 -0
- package/dist/models/delete-request-dto.js +15 -0
- package/dist/models/get-insured-object-request-dto.d.ts +24 -0
- package/dist/models/get-insured-object-request-dto.js +15 -0
- package/dist/models/get-insured-object-response-class.d.ts +25 -0
- package/dist/models/get-insured-object-response-class.js +15 -0
- package/dist/models/get-policy-request-dto.d.ts +30 -0
- package/dist/models/get-policy-request-dto.js +15 -0
- package/dist/models/get-policy-response-class.d.ts +25 -0
- package/dist/models/get-policy-response-class.js +15 -0
- package/dist/models/get-premium-formula-request-dto.d.ts +24 -0
- package/dist/models/get-premium-formula-request-dto.js +15 -0
- package/dist/models/get-premium-formula-response-class.d.ts +25 -0
- package/dist/models/get-premium-formula-response-class.js +15 -0
- package/dist/models/get-product-factor-response-class.d.ts +32 -0
- package/dist/models/get-product-factor-response-class.js +15 -0
- package/dist/models/get-product-factor-value-request-dto.d.ts +42 -0
- package/dist/models/get-product-factor-value-request-dto.js +15 -0
- package/dist/models/get-product-factor-value-response-class.d.ts +25 -0
- package/dist/models/get-product-factor-value-response-class.js +15 -0
- package/dist/models/get-product-field-request-dto.d.ts +24 -0
- package/dist/models/get-product-field-request-dto.js +15 -0
- package/dist/models/get-product-field-response-class.d.ts +25 -0
- package/dist/models/get-product-field-response-class.js +15 -0
- package/dist/models/get-product-request-dto.d.ts +36 -0
- package/dist/models/get-product-request-dto.js +15 -0
- package/dist/models/get-product-response-class.d.ts +25 -0
- package/dist/models/get-product-response-class.js +15 -0
- package/dist/models/get-product-version-request-dto.d.ts +24 -0
- package/dist/models/get-product-version-request-dto.js +15 -0
- package/dist/models/get-product-version-response-class.d.ts +25 -0
- package/dist/models/get-product-version-response-class.js +15 -0
- package/dist/models/grouped-product-factor-class.d.ts +37 -0
- package/dist/models/grouped-product-factor-class.js +15 -0
- package/dist/models/grouped-product-factor-value-class.d.ts +36 -0
- package/dist/models/grouped-product-factor-value-class.js +15 -0
- package/dist/models/grouped-product-factors-response-class.d.ts +25 -0
- package/dist/models/grouped-product-factors-response-class.js +15 -0
- package/dist/models/grpc-create-policy-request-dto.d.ts +37 -0
- package/dist/models/grpc-create-policy-request-dto.js +15 -0
- package/dist/models/index.d.ts +79 -0
- package/dist/models/index.js +95 -0
- package/dist/models/insured-object-class.d.ts +67 -0
- package/dist/models/insured-object-class.js +15 -0
- package/dist/models/insured-object-type-class.d.ts +48 -0
- package/dist/models/insured-object-type-class.js +15 -0
- package/dist/models/list-insured-object-types-response-class.d.ts +31 -0
- package/dist/models/list-insured-object-types-response-class.js +15 -0
- package/dist/models/list-insured-objects-response-class.d.ts +30 -0
- package/dist/models/list-insured-objects-response-class.js +15 -0
- package/dist/models/list-policies-response-class.d.ts +31 -0
- package/dist/models/list-policies-response-class.js +15 -0
- package/dist/models/list-premium-formulas-response-class.d.ts +31 -0
- package/dist/models/list-premium-formulas-response-class.js +15 -0
- package/dist/models/list-product-factors-response-class.d.ts +31 -0
- package/dist/models/list-product-factors-response-class.js +15 -0
- package/dist/models/list-product-field-types-response-class.d.ts +30 -0
- package/dist/models/list-product-field-types-response-class.js +15 -0
- package/dist/models/list-product-fields-response-class.d.ts +31 -0
- package/dist/models/list-product-fields-response-class.js +15 -0
- package/dist/models/list-products-response-class.d.ts +31 -0
- package/dist/models/list-products-response-class.js +15 -0
- package/dist/models/list-request-dto.d.ts +54 -0
- package/dist/models/list-request-dto.js +15 -0
- package/dist/models/policy-class.d.ts +86 -0
- package/dist/models/policy-class.js +15 -0
- package/dist/models/policy-object-class.d.ts +42 -0
- package/dist/models/policy-object-class.js +15 -0
- package/dist/models/policy-object-dto.d.ts +30 -0
- package/dist/models/policy-object-dto.js +15 -0
- package/dist/models/policy-premium-class.d.ts +43 -0
- package/dist/models/policy-premium-class.js +15 -0
- package/dist/models/policy-premium-item-class.d.ts +49 -0
- package/dist/models/policy-premium-item-class.js +15 -0
- package/dist/models/policy-version-class.d.ts +55 -0
- package/dist/models/policy-version-class.js +15 -0
- package/dist/models/premium-formula-class.d.ts +79 -0
- package/dist/models/premium-formula-class.js +15 -0
- package/dist/models/product-class.d.ts +74 -0
- package/dist/models/product-class.js +15 -0
- package/dist/models/product-factor-class.d.ts +68 -0
- package/dist/models/product-factor-class.js +15 -0
- package/dist/models/product-factor-value-class.d.ts +80 -0
- package/dist/models/product-factor-value-class.js +15 -0
- package/dist/models/product-field-class.d.ts +114 -0
- package/dist/models/product-field-class.js +15 -0
- package/dist/models/product-version-class.d.ts +54 -0
- package/dist/models/product-version-class.js +15 -0
- package/dist/models/store-product-factors-request-dto.d.ts +31 -0
- package/dist/models/store-product-factors-request-dto.js +15 -0
- package/dist/models/store-product-factors-response-class.d.ts +25 -0
- package/dist/models/store-product-factors-response-class.js +15 -0
- package/dist/models/timeslice-class.d.ts +62 -0
- package/dist/models/timeslice-class.js +15 -0
- package/dist/models/update-insured-object-request-dto.d.ts +48 -0
- package/dist/models/update-insured-object-request-dto.js +15 -0
- package/dist/models/update-lead-request-dto.d.ts +71 -0
- package/dist/models/update-lead-request-dto.js +22 -0
- package/dist/models/update-policy-request-dto.d.ts +43 -0
- package/dist/models/update-policy-request-dto.js +15 -0
- package/dist/models/update-policy-response-class.d.ts +25 -0
- package/dist/models/update-policy-response-class.js +15 -0
- package/dist/models/update-premium-formula-request-dto.d.ts +71 -0
- package/dist/models/update-premium-formula-request-dto.js +25 -0
- package/dist/models/update-premium-formula-response-class.d.ts +25 -0
- package/dist/models/update-premium-formula-response-class.js +15 -0
- package/dist/models/update-product-field-request-dto.d.ts +119 -0
- package/dist/models/update-product-field-request-dto.js +20 -0
- package/dist/models/update-product-field-response-class.d.ts +25 -0
- package/dist/models/update-product-field-response-class.js +15 -0
- package/dist/models/update-product-request-dto.d.ts +42 -0
- package/dist/models/update-product-request-dto.js +15 -0
- package/dist/models/update-product-response-class.d.ts +25 -0
- package/dist/models/update-product-response-class.js +15 -0
- package/dist/models/update-product-version-request-dto.d.ts +43 -0
- package/dist/models/update-product-version-request-dto.js +22 -0
- package/dist/models/update-product-version-response-class.d.ts +25 -0
- package/dist/models/update-product-version-response-class.js +15 -0
- package/dist/models/uploaded-document-dto.d.ts +24 -0
- package/dist/models/uploaded-document-dto.js +15 -0
- package/dist/models/validate-product-factors-request-dto.d.ts +31 -0
- package/dist/models/validate-product-factors-request-dto.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/calculate-custom-premium-request-dto.ts +43 -0
- package/models/calculate-premium-request-dto.ts +37 -0
- package/models/create-account-request-dto.ts +90 -0
- package/models/create-bank-account-request-dto.ts +36 -0
- package/models/create-claim-request-dto.ts +93 -0
- package/models/create-custom-application-request-dto.ts +49 -0
- package/models/create-dummy-policy-request-dto.ts +37 -0
- package/models/create-insured-object-request-dto.ts +48 -0
- package/models/create-insured-object-response-class.ts +31 -0
- package/models/create-lead-request-dto.ts +80 -0
- package/models/create-policy-request-dto.ts +43 -0
- package/models/create-policy-response-class.ts +31 -0
- package/models/create-premium-formula-request-dto.ts +75 -0
- package/models/create-premium-formula-response-class.ts +31 -0
- package/models/create-product-field-request-dto.ts +122 -0
- package/models/create-product-field-response-class.ts +31 -0
- package/models/create-product-request-dto.ts +66 -0
- package/models/create-product-response-class.ts +31 -0
- package/models/csv-product-factor-dto.ts +54 -0
- package/models/delete-request-dto.ts +30 -0
- package/models/get-insured-object-request-dto.ts +30 -0
- package/models/get-insured-object-response-class.ts +31 -0
- package/models/get-policy-request-dto.ts +36 -0
- package/models/get-policy-response-class.ts +31 -0
- package/models/get-premium-formula-request-dto.ts +30 -0
- package/models/get-premium-formula-response-class.ts +31 -0
- package/models/get-product-factor-response-class.ts +38 -0
- package/models/get-product-factor-value-request-dto.ts +48 -0
- package/models/get-product-factor-value-response-class.ts +31 -0
- package/models/get-product-field-request-dto.ts +30 -0
- package/models/get-product-field-response-class.ts +31 -0
- package/models/get-product-request-dto.ts +42 -0
- package/models/get-product-response-class.ts +31 -0
- package/models/get-product-version-request-dto.ts +30 -0
- package/models/get-product-version-response-class.ts +31 -0
- package/models/grouped-product-factor-class.ts +43 -0
- package/models/grouped-product-factor-value-class.ts +42 -0
- package/models/grouped-product-factors-response-class.ts +31 -0
- package/models/grpc-create-policy-request-dto.ts +43 -0
- package/models/index.ts +79 -0
- package/models/insured-object-class.ts +73 -0
- package/models/insured-object-type-class.ts +54 -0
- package/models/list-insured-object-types-response-class.ts +37 -0
- package/models/list-insured-objects-response-class.ts +36 -0
- package/models/list-policies-response-class.ts +37 -0
- package/models/list-premium-formulas-response-class.ts +37 -0
- package/models/list-product-factors-response-class.ts +37 -0
- package/models/list-product-field-types-response-class.ts +36 -0
- package/models/list-product-fields-response-class.ts +37 -0
- package/models/list-products-response-class.ts +37 -0
- package/models/list-request-dto.ts +60 -0
- package/models/policy-class.ts +92 -0
- package/models/policy-object-class.ts +48 -0
- package/models/policy-object-dto.ts +36 -0
- package/models/policy-premium-class.ts +49 -0
- package/models/policy-premium-item-class.ts +55 -0
- package/models/policy-version-class.ts +61 -0
- package/models/premium-formula-class.ts +85 -0
- package/models/product-class.ts +80 -0
- package/models/product-factor-class.ts +74 -0
- package/models/product-factor-value-class.ts +86 -0
- package/models/product-field-class.ts +120 -0
- package/models/product-version-class.ts +60 -0
- package/models/store-product-factors-request-dto.ts +37 -0
- package/models/store-product-factors-response-class.ts +31 -0
- package/models/timeslice-class.ts +68 -0
- package/models/update-insured-object-request-dto.ts +54 -0
- package/models/update-lead-request-dto.ts +80 -0
- package/models/update-policy-request-dto.ts +49 -0
- package/models/update-policy-response-class.ts +31 -0
- package/models/update-premium-formula-request-dto.ts +81 -0
- package/models/update-premium-formula-response-class.ts +31 -0
- package/models/update-product-field-request-dto.ts +128 -0
- package/models/update-product-field-response-class.ts +31 -0
- package/models/update-product-request-dto.ts +48 -0
- package/models/update-product-response-class.ts +31 -0
- package/models/update-product-version-request-dto.ts +52 -0
- package/models/update-product-version-response-class.ts +31 -0
- package/models/uploaded-document-dto.ts +30 -0
- package/models/validate-product-factors-request-dto.ts +37 -0
- package/package.json +29 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL InsuranceService
|
|
3
|
+
* The EMIL InsuranceService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdatePremiumFormulaRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdatePremiumFormulaRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* Product version id
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof UpdatePremiumFormulaRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'productVersionId': number;
|
|
24
|
+
/**
|
|
25
|
+
* Group name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdatePremiumFormulaRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'group': string;
|
|
30
|
+
/**
|
|
31
|
+
* Premium name
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdatePremiumFormulaRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'name': string;
|
|
36
|
+
/**
|
|
37
|
+
* Premium expression
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UpdatePremiumFormulaRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'expression': string;
|
|
42
|
+
/**
|
|
43
|
+
* Product type
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof UpdatePremiumFormulaRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'type': UpdatePremiumFormulaRequestDtoTypeEnum;
|
|
48
|
+
/**
|
|
49
|
+
* Premium type unit
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof UpdatePremiumFormulaRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'unit': UpdatePremiumFormulaRequestDtoUnitEnum;
|
|
54
|
+
/**
|
|
55
|
+
* Premium formula id
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof UpdatePremiumFormulaRequestDto
|
|
58
|
+
*/
|
|
59
|
+
'id': number;
|
|
60
|
+
}
|
|
61
|
+
export declare const UpdatePremiumFormulaRequestDtoTypeEnum: {
|
|
62
|
+
readonly Time: "time";
|
|
63
|
+
};
|
|
64
|
+
export declare type UpdatePremiumFormulaRequestDtoTypeEnum = typeof UpdatePremiumFormulaRequestDtoTypeEnum[keyof typeof UpdatePremiumFormulaRequestDtoTypeEnum];
|
|
65
|
+
export declare const UpdatePremiumFormulaRequestDtoUnitEnum: {
|
|
66
|
+
readonly Day: "day";
|
|
67
|
+
readonly Week: "week";
|
|
68
|
+
readonly Month: "month";
|
|
69
|
+
readonly Year: "year";
|
|
70
|
+
};
|
|
71
|
+
export declare type UpdatePremiumFormulaRequestDtoUnitEnum = typeof UpdatePremiumFormulaRequestDtoUnitEnum[keyof typeof UpdatePremiumFormulaRequestDtoUnitEnum];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL InsuranceService
|
|
6
|
+
* The EMIL InsuranceService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UpdatePremiumFormulaRequestDtoUnitEnum = exports.UpdatePremiumFormulaRequestDtoTypeEnum = void 0;
|
|
17
|
+
exports.UpdatePremiumFormulaRequestDtoTypeEnum = {
|
|
18
|
+
Time: 'time'
|
|
19
|
+
};
|
|
20
|
+
exports.UpdatePremiumFormulaRequestDtoUnitEnum = {
|
|
21
|
+
Day: 'day',
|
|
22
|
+
Week: 'week',
|
|
23
|
+
Month: 'month',
|
|
24
|
+
Year: 'year'
|
|
25
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL InsuranceService
|
|
3
|
+
* The EMIL InsuranceService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { PremiumFormulaClass } from './premium-formula-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdatePremiumFormulaResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdatePremiumFormulaResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Premium formula
|
|
21
|
+
* @type {PremiumFormulaClass}
|
|
22
|
+
* @memberof UpdatePremiumFormulaResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'premiumFormula': PremiumFormulaClass;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL InsuranceService
|
|
6
|
+
* The EMIL InsuranceService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL InsuranceService
|
|
3
|
+
* The EMIL InsuranceService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateProductFieldRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateProductFieldRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* Product field id
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof UpdateProductFieldRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'id': number;
|
|
24
|
+
/**
|
|
25
|
+
* Product field name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateProductFieldRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'name': string;
|
|
30
|
+
/**
|
|
31
|
+
* Product field label
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateProductFieldRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'label': string;
|
|
36
|
+
/**
|
|
37
|
+
* Product field type
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UpdateProductFieldRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'typeEntity': UpdateProductFieldRequestDtoTypeEntityEnum;
|
|
42
|
+
/**
|
|
43
|
+
* Product field type id
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof UpdateProductFieldRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'typeId': number;
|
|
48
|
+
/**
|
|
49
|
+
* Insured object id
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof UpdateProductFieldRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'insuredObjectId': number;
|
|
54
|
+
/**
|
|
55
|
+
* Product field group
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof UpdateProductFieldRequestDto
|
|
58
|
+
*/
|
|
59
|
+
'group': string;
|
|
60
|
+
/**
|
|
61
|
+
* Is field required?
|
|
62
|
+
* @type {boolean}
|
|
63
|
+
* @memberof UpdateProductFieldRequestDto
|
|
64
|
+
*/
|
|
65
|
+
'isRequired': boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Is field hidden on the booking funnel?
|
|
68
|
+
* @type {boolean}
|
|
69
|
+
* @memberof UpdateProductFieldRequestDto
|
|
70
|
+
*/
|
|
71
|
+
'isHidden': boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Should the field value be unique across policies?
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof UpdateProductFieldRequestDto
|
|
76
|
+
*/
|
|
77
|
+
'isUnique': boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Booking funnel description
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof UpdateProductFieldRequestDto
|
|
82
|
+
*/
|
|
83
|
+
'bfDescription'?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Booking funnel tooltip
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof UpdateProductFieldRequestDto
|
|
88
|
+
*/
|
|
89
|
+
'bfTooltip'?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Booking funnel label
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof UpdateProductFieldRequestDto
|
|
94
|
+
*/
|
|
95
|
+
'bfLabel'?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Default value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
|
|
98
|
+
* @type {object}
|
|
99
|
+
* @memberof UpdateProductFieldRequestDto
|
|
100
|
+
*/
|
|
101
|
+
'defaultValue': object;
|
|
102
|
+
/**
|
|
103
|
+
* Default value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
|
|
104
|
+
* @type {object}
|
|
105
|
+
* @memberof UpdateProductFieldRequestDto
|
|
106
|
+
*/
|
|
107
|
+
'minValue'?: object;
|
|
108
|
+
/**
|
|
109
|
+
* Default value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
|
|
110
|
+
* @type {object}
|
|
111
|
+
* @memberof UpdateProductFieldRequestDto
|
|
112
|
+
*/
|
|
113
|
+
'maxValue'?: object;
|
|
114
|
+
}
|
|
115
|
+
export declare const UpdateProductFieldRequestDtoTypeEntityEnum: {
|
|
116
|
+
readonly SystemProductFieldType: "system_product_field_type";
|
|
117
|
+
readonly ProductFactorType: "product_factor_type";
|
|
118
|
+
};
|
|
119
|
+
export declare type UpdateProductFieldRequestDtoTypeEntityEnum = typeof UpdateProductFieldRequestDtoTypeEntityEnum[keyof typeof UpdateProductFieldRequestDtoTypeEntityEnum];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL InsuranceService
|
|
6
|
+
* The EMIL InsuranceService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UpdateProductFieldRequestDtoTypeEntityEnum = void 0;
|
|
17
|
+
exports.UpdateProductFieldRequestDtoTypeEntityEnum = {
|
|
18
|
+
SystemProductFieldType: 'system_product_field_type',
|
|
19
|
+
ProductFactorType: 'product_factor_type'
|
|
20
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL InsuranceService
|
|
3
|
+
* The EMIL InsuranceService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { ProductFieldClass } from './product-field-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateProductFieldResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateProductFieldResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* product field
|
|
21
|
+
* @type {ProductFieldClass}
|
|
22
|
+
* @memberof UpdateProductFieldResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'productField': ProductFieldClass;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL InsuranceService
|
|
6
|
+
* The EMIL InsuranceService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL InsuranceService
|
|
3
|
+
* The EMIL InsuranceService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateProductRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateProductRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* Product name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateProductRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'name': string;
|
|
24
|
+
/**
|
|
25
|
+
* Contract duration in days
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof UpdateProductRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'contractDurationDays': number;
|
|
30
|
+
/**
|
|
31
|
+
* Product slug
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateProductRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'slug': string;
|
|
36
|
+
/**
|
|
37
|
+
* Product id
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof UpdateProductRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'id': number;
|
|
42
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL InsuranceService
|
|
6
|
+
* The EMIL InsuranceService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL InsuranceService
|
|
3
|
+
* The EMIL InsuranceService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { ProductClass } from './product-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateProductResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateProductResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Product
|
|
21
|
+
* @type {ProductClass}
|
|
22
|
+
* @memberof UpdateProductResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'product': ProductClass;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL InsuranceService
|
|
6
|
+
* The EMIL InsuranceService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL InsuranceService
|
|
3
|
+
* The EMIL InsuranceService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateProductVersionRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateProductVersionRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* Product version id
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof UpdateProductVersionRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'id': number;
|
|
24
|
+
/**
|
|
25
|
+
* Product version description
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateProductVersionRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'description': string;
|
|
30
|
+
/**
|
|
31
|
+
* Product version status
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateProductVersionRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'status': UpdateProductVersionRequestDtoStatusEnum;
|
|
36
|
+
}
|
|
37
|
+
export declare const UpdateProductVersionRequestDtoStatusEnum: {
|
|
38
|
+
readonly Draft: "draft";
|
|
39
|
+
readonly Active: "active";
|
|
40
|
+
readonly Passive: "passive";
|
|
41
|
+
readonly Archived: "archived";
|
|
42
|
+
};
|
|
43
|
+
export declare type UpdateProductVersionRequestDtoStatusEnum = typeof UpdateProductVersionRequestDtoStatusEnum[keyof typeof UpdateProductVersionRequestDtoStatusEnum];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL InsuranceService
|
|
6
|
+
* The EMIL InsuranceService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UpdateProductVersionRequestDtoStatusEnum = void 0;
|
|
17
|
+
exports.UpdateProductVersionRequestDtoStatusEnum = {
|
|
18
|
+
Draft: 'draft',
|
|
19
|
+
Active: 'active',
|
|
20
|
+
Passive: 'passive',
|
|
21
|
+
Archived: 'archived'
|
|
22
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL InsuranceService
|
|
3
|
+
* The EMIL InsuranceService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { ProductVersionClass } from './product-version-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateProductVersionResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateProductVersionResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Product version
|
|
21
|
+
* @type {ProductVersionClass}
|
|
22
|
+
* @memberof UpdateProductVersionResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'productVersion': ProductVersionClass;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL InsuranceService
|
|
6
|
+
* The EMIL InsuranceService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL InsuranceService
|
|
3
|
+
* The EMIL InsuranceService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UploadedDocumentDto
|
|
16
|
+
*/
|
|
17
|
+
export interface UploadedDocumentDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof UploadedDocumentDto
|
|
22
|
+
*/
|
|
23
|
+
'codes': Array<string>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL InsuranceService
|
|
6
|
+
* The EMIL InsuranceService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL InsuranceService
|
|
3
|
+
* The EMIL InsuranceService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { CsvProductFactorDto } from './csv-product-factor-dto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ValidateProductFactorsRequestDto
|
|
17
|
+
*/
|
|
18
|
+
export interface ValidateProductFactorsRequestDto {
|
|
19
|
+
/**
|
|
20
|
+
* Product version id
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof ValidateProductFactorsRequestDto
|
|
23
|
+
*/
|
|
24
|
+
'productVersionId': number;
|
|
25
|
+
/**
|
|
26
|
+
* Factors
|
|
27
|
+
* @type {Array<CsvProductFactorDto>}
|
|
28
|
+
* @memberof ValidateProductFactorsRequestDto
|
|
29
|
+
*/
|
|
30
|
+
'productFactors': Array<CsvProductFactorDto>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL InsuranceService
|
|
6
|
+
* The EMIL InsuranceService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/git_push.sh
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
3
|
+
#
|
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
|
5
|
+
|
|
6
|
+
git_user_id=$1
|
|
7
|
+
git_repo_id=$2
|
|
8
|
+
release_note=$3
|
|
9
|
+
git_host=$4
|
|
10
|
+
|
|
11
|
+
if [ "$git_host" = "" ]; then
|
|
12
|
+
git_host="github.com"
|
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
|
17
|
+
git_user_id="Emil"
|
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
|
22
|
+
git_repo_id="insurance-sdk"
|
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
if [ "$release_note" = "" ]; then
|
|
27
|
+
release_note="Minor update"
|
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
# Initialize the local directory as a Git repository
|
|
32
|
+
git init
|
|
33
|
+
|
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
|
35
|
+
git add .
|
|
36
|
+
|
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
+
git commit -m "$release_note"
|
|
39
|
+
|
|
40
|
+
# Sets the new remote
|
|
41
|
+
git_remote=$(git remote)
|
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
43
|
+
|
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
47
|
+
else
|
|
48
|
+
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
git pull origin master
|
|
54
|
+
|
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|