@arrowsphere/api-client 3.58.0-rc.pfe.1 → 3.58.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/CHANGELOG.md +1 -5
- package/build/customers/customersClient.d.ts +9 -0
- package/build/customers/customersClient.js +10 -1
- package/build/graphqlApi/types/graphqlApiQueries.d.ts +0 -3
- package/build/graphqlApi/types/graphqlApiQueries.js +0 -1
- package/build/graphqlApi/types/graphqlApiSchemas.d.ts +0 -4
- package/package.json +1 -1
- package/build/graphqlApi/types/entities/quote.d.ts +0 -10
- package/build/graphqlApi/types/entities/quote.js +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -6,28 +6,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
6
6
|
## [3.58.0] - 2023-10-19
|
|
7
7
|
|
|
8
8
|
### Changed
|
|
9
|
-
|
|
10
|
-
- Added quote entity to the graphql API
|
|
9
|
+
- Update customer client, add post invitation endpoint
|
|
11
10
|
|
|
12
11
|
## [3.57.1] - 2023-10-13
|
|
13
12
|
|
|
14
13
|
### Changed
|
|
15
14
|
- Fixing the missing pillar in the wellArchitected ressources endpoint
|
|
16
15
|
|
|
17
|
-
|
|
18
16
|
## [3.57.0] - 2023-10-10
|
|
19
17
|
|
|
20
18
|
### Changed
|
|
21
19
|
- add method findPriceBandsByQuery
|
|
22
20
|
|
|
23
|
-
|
|
24
21
|
## [3.56.0] - 2023-10-05
|
|
25
22
|
|
|
26
23
|
### Changed
|
|
27
24
|
- The **security** endpoint is now considered deprecrated.
|
|
28
25
|
- Add the **register** and **standards** functions that used the **security** endpoint in the wellArchitected one.
|
|
29
26
|
|
|
30
|
-
|
|
31
27
|
## [3.55.0] - 2023-09-25
|
|
32
28
|
|
|
33
29
|
### Changed
|
|
@@ -52,6 +52,14 @@ export declare type PostCustomerPayload = {
|
|
|
52
52
|
[CustomerFields.COLUMN_INTERNAL_REFERENCE]?: string;
|
|
53
53
|
[CustomerFields.COLUMN_CONTACT]?: PostCustomerContact;
|
|
54
54
|
};
|
|
55
|
+
export declare enum PostCustomerInvitationFields {
|
|
56
|
+
COLUMN_CONTACT_ID = "contactId",
|
|
57
|
+
COLUMN_POLICY = "policy"
|
|
58
|
+
}
|
|
59
|
+
export declare type PostCustomerInvitation = {
|
|
60
|
+
[PostCustomerInvitationFields.COLUMN_CONTACT_ID]: number;
|
|
61
|
+
[PostCustomerInvitationFields.COLUMN_POLICY]: string;
|
|
62
|
+
};
|
|
55
63
|
export declare type APIResponseResourceCreated = {
|
|
56
64
|
status: number;
|
|
57
65
|
data: {
|
|
@@ -86,4 +94,5 @@ export declare class CustomersClient extends AbstractRestfulClient {
|
|
|
86
94
|
patchCustomerContact(customerReference: string, contactReference: string, payload: PatchCustomerContactPayload, parameters?: Parameters): Promise<GetResult<CustomerContact>>;
|
|
87
95
|
createCustomer(payload: PostCustomerPayload, parameters?: Parameters, returnAxiosData?: boolean): Promise<APIResponseResourceCreated | APIResponseError>;
|
|
88
96
|
updateCustomer(customerReference: string, payload: Partial<PostCustomerPayload>, parameters?: Parameters, returnAxiosData?: boolean): Promise<APIResponseCustomerUpdated | APIResponseError>;
|
|
97
|
+
postCustomerInvitation(payload: PostCustomerInvitation, parameters?: Parameters): Promise<GetResult<DataInvitation>>;
|
|
89
98
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomersClient = exports.CustomerContactPayloadFields = void 0;
|
|
3
|
+
exports.CustomersClient = exports.PostCustomerInvitationFields = exports.CustomerContactPayloadFields = void 0;
|
|
4
4
|
const abstractRestfulClient_1 = require("../abstractRestfulClient");
|
|
5
5
|
const getResult_1 = require("../getResult");
|
|
6
6
|
const dataCustomers_1 = require("./entities/dataCustomers");
|
|
@@ -20,6 +20,11 @@ var CustomerContactPayloadFields;
|
|
|
20
20
|
CustomerContactPayloadFields["COLUMN_TYPE"] = "type";
|
|
21
21
|
CustomerContactPayloadFields["COLUMN_ROLE"] = "role";
|
|
22
22
|
})(CustomerContactPayloadFields = exports.CustomerContactPayloadFields || (exports.CustomerContactPayloadFields = {}));
|
|
23
|
+
var PostCustomerInvitationFields;
|
|
24
|
+
(function (PostCustomerInvitationFields) {
|
|
25
|
+
PostCustomerInvitationFields["COLUMN_CONTACT_ID"] = "contactId";
|
|
26
|
+
PostCustomerInvitationFields["COLUMN_POLICY"] = "policy";
|
|
27
|
+
})(PostCustomerInvitationFields = exports.PostCustomerInvitationFields || (exports.PostCustomerInvitationFields = {}));
|
|
23
28
|
class CustomersClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
24
29
|
constructor() {
|
|
25
30
|
super(...arguments);
|
|
@@ -69,6 +74,10 @@ class CustomersClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
69
74
|
this.path = `/${customerReference}`;
|
|
70
75
|
return await this.patch(payload, parameters, {}, { returnAxiosData });
|
|
71
76
|
}
|
|
77
|
+
async postCustomerInvitation(payload, parameters = {}) {
|
|
78
|
+
this.path = `/invitations`;
|
|
79
|
+
return new getResult_1.GetResult(dataInvitation_1.DataInvitation, await this.post(payload, parameters));
|
|
80
|
+
}
|
|
72
81
|
}
|
|
73
82
|
exports.CustomersClient = CustomersClient;
|
|
74
83
|
//# sourceMappingURL=customersClient.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ArrowCompanyType, EndCustomerType, PartnerType } from './entities/company';
|
|
2
2
|
import { ContinentType, CountryType } from './entities/country';
|
|
3
3
|
import { PartnertagType } from './entities/partnertag';
|
|
4
|
-
import { QuoteType } from './entities/quote';
|
|
5
4
|
import { WorkgroupType } from './entities/workgroup';
|
|
6
5
|
import { ErrorsSchema, PageSchema, SelectAllResponseDataSchema } from './graphqlApiSchemas';
|
|
7
6
|
/**
|
|
@@ -106,7 +105,6 @@ export declare enum SelectDataField {
|
|
|
106
105
|
END_CUSTOMER = "endCustomer",
|
|
107
106
|
PARTNER = "partner",
|
|
108
107
|
PARTNERTAG = "partnertag",
|
|
109
|
-
QUOTE = "quote",
|
|
110
108
|
WORKGROUP = "workgroup"
|
|
111
109
|
}
|
|
112
110
|
export declare type SelectAllResultType = {
|
|
@@ -123,7 +121,6 @@ export declare type SelectAllResponseDataType = {
|
|
|
123
121
|
[SelectDataField.END_CUSTOMER]?: EndCustomerType[];
|
|
124
122
|
[SelectDataField.PARTNER]?: PartnerType[];
|
|
125
123
|
[SelectDataField.PARTNERTAG]?: PartnertagType[];
|
|
126
|
-
[SelectDataField.QUOTE]?: QuoteType[];
|
|
127
124
|
[SelectDataField.WORKGROUP]?: WorkgroupType[];
|
|
128
125
|
};
|
|
129
126
|
export declare enum ErrorsField {
|
|
@@ -89,7 +89,6 @@ var SelectDataField;
|
|
|
89
89
|
SelectDataField["END_CUSTOMER"] = "endCustomer";
|
|
90
90
|
SelectDataField["PARTNER"] = "partner";
|
|
91
91
|
SelectDataField["PARTNERTAG"] = "partnertag";
|
|
92
|
-
SelectDataField["QUOTE"] = "quote";
|
|
93
92
|
SelectDataField["WORKGROUP"] = "workgroup";
|
|
94
93
|
})(SelectDataField = exports.SelectDataField || (exports.SelectDataField = {}));
|
|
95
94
|
var ErrorsField;
|
|
@@ -2,7 +2,6 @@ import { Merge, Schema } from 'type-fest';
|
|
|
2
2
|
import { ArrowCompanyType, EndCustomerType, PartnerType } from './entities/company';
|
|
3
3
|
import { PartnertagType } from './entities/partnertag';
|
|
4
4
|
import { ContinentType, CountryType } from './entities/country';
|
|
5
|
-
import { QuoteType } from './entities/quote';
|
|
6
5
|
import { WorkgroupType } from './entities/workgroup';
|
|
7
6
|
import { ErrorsType, PageType, Queries, SelectDataField, SelectableField } from './graphqlApiQueries';
|
|
8
7
|
export declare type PartnertagSchema = Schema<PartnertagType, boolean>;
|
|
@@ -20,7 +19,6 @@ export declare type ContinentSchema = Schema<ContinentType, boolean>;
|
|
|
20
19
|
export declare type CountrySchema = Schema<CountryType, boolean>;
|
|
21
20
|
export declare type ErrorsSchema = Schema<ErrorsType, boolean>;
|
|
22
21
|
export declare type PageSchema = Schema<PageType, boolean>;
|
|
23
|
-
export declare type QuoteSchema = Schema<QuoteType, boolean>;
|
|
24
22
|
export declare type WorkgroupSchema = Schema<WorkgroupType, boolean>;
|
|
25
23
|
export declare type SelectAllResultSchema = {
|
|
26
24
|
[SelectableField.DATA]?: SelectAllResponseDataSchema;
|
|
@@ -34,7 +32,6 @@ export declare type SelectAllResponseDataSchema = {
|
|
|
34
32
|
[SelectDataField.END_CUSTOMER]?: EndCustomerSchema;
|
|
35
33
|
[SelectDataField.PARTNER]?: PartnerSchema;
|
|
36
34
|
[SelectDataField.PARTNERTAG]?: PartnertagSchema;
|
|
37
|
-
[SelectDataField.QUOTE]?: QuoteSchema;
|
|
38
35
|
[SelectDataField.WORKGROUP]?: WorkgroupSchema;
|
|
39
36
|
};
|
|
40
37
|
export declare type SelectOneResultSchema = {
|
|
@@ -48,7 +45,6 @@ export declare type SelectOneResponseDataSchema = {
|
|
|
48
45
|
[SelectDataField.END_CUSTOMER]?: EndCustomerSchema;
|
|
49
46
|
[SelectDataField.PARTNER]?: PartnerSchema;
|
|
50
47
|
[SelectDataField.PARTNERTAG]?: PartnertagSchema;
|
|
51
|
-
[SelectDataField.QUOTE]?: QuoteSchema;
|
|
52
48
|
[SelectDataField.WORKGROUP]?: WorkgroupSchema;
|
|
53
49
|
};
|
|
54
50
|
export declare type SelectAllQuerySchema = {
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ArrowCompanyType, EndCustomerType, PartnerType } from './company';
|
|
2
|
-
export declare type QuoteType = {
|
|
3
|
-
id?: number;
|
|
4
|
-
arrowCompany?: ArrowCompanyType;
|
|
5
|
-
createdAt?: string;
|
|
6
|
-
endCustomer?: EndCustomerType;
|
|
7
|
-
partner?: PartnerType;
|
|
8
|
-
reference?: string;
|
|
9
|
-
updatedAt?: string;
|
|
10
|
-
};
|