@arrowsphere/api-client 3.58.0-rc.fdi.1 → 3.58.0-rc.pfe.1
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 +6 -0
- package/build/customers/customersClient.d.ts +0 -9
- package/build/customers/customersClient.js +1 -10
- package/build/graphqlApi/types/entities/quote.d.ts +10 -0
- package/build/graphqlApi/types/entities/quote.js +3 -0
- package/build/graphqlApi/types/graphqlApiQueries.d.ts +3 -0
- package/build/graphqlApi/types/graphqlApiQueries.js +1 -0
- package/build/graphqlApi/types/graphqlApiSchemas.d.ts +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
4
4
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
5
5
|
|
|
6
|
+
## [3.58.0] - 2023-10-19
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
|
|
10
|
+
- Added quote entity to the graphql API
|
|
11
|
+
|
|
6
12
|
## [3.57.1] - 2023-10-13
|
|
7
13
|
|
|
8
14
|
### Changed
|
|
@@ -52,14 +52,6 @@ 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
|
-
};
|
|
63
55
|
export declare type APIResponseResourceCreated = {
|
|
64
56
|
status: number;
|
|
65
57
|
data: {
|
|
@@ -94,5 +86,4 @@ export declare class CustomersClient extends AbstractRestfulClient {
|
|
|
94
86
|
patchCustomerContact(customerReference: string, contactReference: string, payload: PatchCustomerContactPayload, parameters?: Parameters): Promise<GetResult<CustomerContact>>;
|
|
95
87
|
createCustomer(payload: PostCustomerPayload, parameters?: Parameters, returnAxiosData?: boolean): Promise<APIResponseResourceCreated | APIResponseError>;
|
|
96
88
|
updateCustomer(customerReference: string, payload: Partial<PostCustomerPayload>, parameters?: Parameters, returnAxiosData?: boolean): Promise<APIResponseCustomerUpdated | APIResponseError>;
|
|
97
|
-
postCustomerInvitation(payload: PostCustomerInvitation, parameters?: Parameters): Promise<GetResult<DataInvitation>>;
|
|
98
89
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomersClient = exports.
|
|
3
|
+
exports.CustomersClient = 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,11 +20,6 @@ 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 = {}));
|
|
28
23
|
class CustomersClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
29
24
|
constructor() {
|
|
30
25
|
super(...arguments);
|
|
@@ -74,10 +69,6 @@ class CustomersClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
74
69
|
this.path = `/${customerReference}`;
|
|
75
70
|
return await this.patch(payload, parameters, {}, { returnAxiosData });
|
|
76
71
|
}
|
|
77
|
-
async postCustomerInvitation(payload, parameters = {}) {
|
|
78
|
-
this.path = `/invitations`;
|
|
79
|
-
return new getResult_1.GetResult(dataInvitation_1.DataInvitation, await this.post(payload, parameters));
|
|
80
|
-
}
|
|
81
72
|
}
|
|
82
73
|
exports.CustomersClient = CustomersClient;
|
|
83
74
|
//# sourceMappingURL=customersClient.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
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';
|
|
4
5
|
import { WorkgroupType } from './entities/workgroup';
|
|
5
6
|
import { ErrorsSchema, PageSchema, SelectAllResponseDataSchema } from './graphqlApiSchemas';
|
|
6
7
|
/**
|
|
@@ -105,6 +106,7 @@ export declare enum SelectDataField {
|
|
|
105
106
|
END_CUSTOMER = "endCustomer",
|
|
106
107
|
PARTNER = "partner",
|
|
107
108
|
PARTNERTAG = "partnertag",
|
|
109
|
+
QUOTE = "quote",
|
|
108
110
|
WORKGROUP = "workgroup"
|
|
109
111
|
}
|
|
110
112
|
export declare type SelectAllResultType = {
|
|
@@ -121,6 +123,7 @@ export declare type SelectAllResponseDataType = {
|
|
|
121
123
|
[SelectDataField.END_CUSTOMER]?: EndCustomerType[];
|
|
122
124
|
[SelectDataField.PARTNER]?: PartnerType[];
|
|
123
125
|
[SelectDataField.PARTNERTAG]?: PartnertagType[];
|
|
126
|
+
[SelectDataField.QUOTE]?: QuoteType[];
|
|
124
127
|
[SelectDataField.WORKGROUP]?: WorkgroupType[];
|
|
125
128
|
};
|
|
126
129
|
export declare enum ErrorsField {
|
|
@@ -89,6 +89,7 @@ var SelectDataField;
|
|
|
89
89
|
SelectDataField["END_CUSTOMER"] = "endCustomer";
|
|
90
90
|
SelectDataField["PARTNER"] = "partner";
|
|
91
91
|
SelectDataField["PARTNERTAG"] = "partnertag";
|
|
92
|
+
SelectDataField["QUOTE"] = "quote";
|
|
92
93
|
SelectDataField["WORKGROUP"] = "workgroup";
|
|
93
94
|
})(SelectDataField = exports.SelectDataField || (exports.SelectDataField = {}));
|
|
94
95
|
var ErrorsField;
|
|
@@ -2,6 +2,7 @@ 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';
|
|
5
6
|
import { WorkgroupType } from './entities/workgroup';
|
|
6
7
|
import { ErrorsType, PageType, Queries, SelectDataField, SelectableField } from './graphqlApiQueries';
|
|
7
8
|
export declare type PartnertagSchema = Schema<PartnertagType, boolean>;
|
|
@@ -19,6 +20,7 @@ export declare type ContinentSchema = Schema<ContinentType, boolean>;
|
|
|
19
20
|
export declare type CountrySchema = Schema<CountryType, boolean>;
|
|
20
21
|
export declare type ErrorsSchema = Schema<ErrorsType, boolean>;
|
|
21
22
|
export declare type PageSchema = Schema<PageType, boolean>;
|
|
23
|
+
export declare type QuoteSchema = Schema<QuoteType, boolean>;
|
|
22
24
|
export declare type WorkgroupSchema = Schema<WorkgroupType, boolean>;
|
|
23
25
|
export declare type SelectAllResultSchema = {
|
|
24
26
|
[SelectableField.DATA]?: SelectAllResponseDataSchema;
|
|
@@ -32,6 +34,7 @@ export declare type SelectAllResponseDataSchema = {
|
|
|
32
34
|
[SelectDataField.END_CUSTOMER]?: EndCustomerSchema;
|
|
33
35
|
[SelectDataField.PARTNER]?: PartnerSchema;
|
|
34
36
|
[SelectDataField.PARTNERTAG]?: PartnertagSchema;
|
|
37
|
+
[SelectDataField.QUOTE]?: QuoteSchema;
|
|
35
38
|
[SelectDataField.WORKGROUP]?: WorkgroupSchema;
|
|
36
39
|
};
|
|
37
40
|
export declare type SelectOneResultSchema = {
|
|
@@ -45,6 +48,7 @@ export declare type SelectOneResponseDataSchema = {
|
|
|
45
48
|
[SelectDataField.END_CUSTOMER]?: EndCustomerSchema;
|
|
46
49
|
[SelectDataField.PARTNER]?: PartnerSchema;
|
|
47
50
|
[SelectDataField.PARTNERTAG]?: PartnertagSchema;
|
|
51
|
+
[SelectDataField.QUOTE]?: QuoteSchema;
|
|
48
52
|
[SelectDataField.WORKGROUP]?: WorkgroupSchema;
|
|
49
53
|
};
|
|
50
54
|
export declare type SelectAllQuerySchema = {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "https://github.com/ArrowSphere/nodejs-api-client.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "3.58.0-rc.
|
|
7
|
+
"version": "3.58.0-rc.pfe.1",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|