pipedrive 36.1.0 → 36.2.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/dist/esm/versions/v1/api/goals-api.d.ts +12 -3
- package/dist/esm/versions/v1/api/goals-api.js +15 -9
- package/dist/esm/versions/v1/models/mail-message-data-from-inner.d.ts +2 -2
- package/dist/esm/versions/v1/models/mail-message-data.d.ts +1 -1
- package/dist/esm/versions/v1/models/mail-message-item-for-list-all-of.d.ts +1 -1
- package/dist/esm/versions/v1/models/mail-thread-all-of1-parties-to-inner.d.ts +3 -3
- package/dist/esm/versions/v1/models/mail-thread-all-of1.d.ts +6 -6
- package/dist/esm/versions/v2/models/add-product-variation-request.d.ts +4 -3
- package/dist/esm/versions/v2/models/base-product-variation-price.d.ts +43 -0
- package/dist/esm/versions/v2/models/base-product-variation-price.js +14 -0
- package/dist/esm/versions/v2/models/get-product-variations-response-data-inner.d.ts +4 -3
- package/dist/esm/versions/v2/models/index.d.ts +4 -0
- package/dist/esm/versions/v2/models/index.js +4 -0
- package/dist/esm/versions/v2/models/product-variation-price-all-of.d.ts +23 -0
- package/dist/esm/versions/v2/models/product-variation-price-all-of.js +14 -0
- package/dist/esm/versions/v2/models/product-variation-price-request.d.ts +17 -0
- package/dist/esm/versions/v2/models/product-variation-price-request.js +14 -0
- package/dist/esm/versions/v2/models/product-variation-price.d.ts +18 -0
- package/dist/esm/versions/v2/models/product-variation-price.js +14 -0
- package/dist/esm/versions/v2/models/update-product-variation-request.d.ts +4 -3
- package/dist/versions/v1/api/goals-api.d.ts +12 -3
- package/dist/versions/v1/api/goals-api.js +15 -9
- package/dist/versions/v1/models/mail-message-data-from-inner.d.ts +2 -2
- package/dist/versions/v1/models/mail-message-data.d.ts +1 -1
- package/dist/versions/v1/models/mail-message-item-for-list-all-of.d.ts +1 -1
- package/dist/versions/v1/models/mail-thread-all-of1-parties-to-inner.d.ts +3 -3
- package/dist/versions/v1/models/mail-thread-all-of1.d.ts +6 -6
- package/dist/versions/v2/models/add-product-variation-request.d.ts +4 -3
- package/dist/versions/v2/models/base-product-variation-price.d.ts +43 -0
- package/dist/versions/v2/models/base-product-variation-price.js +15 -0
- package/dist/versions/v2/models/get-product-variations-response-data-inner.d.ts +4 -3
- package/dist/versions/v2/models/index.d.ts +4 -0
- package/dist/versions/v2/models/index.js +4 -0
- package/dist/versions/v2/models/product-variation-price-all-of.d.ts +23 -0
- package/dist/versions/v2/models/product-variation-price-all-of.js +15 -0
- package/dist/versions/v2/models/product-variation-price-request.d.ts +17 -0
- package/dist/versions/v2/models/product-variation-price-request.js +15 -0
- package/dist/versions/v2/models/product-variation-price.d.ts +18 -0
- package/dist/versions/v2/models/product-variation-price.js +15 -0
- package/dist/versions/v2/models/update-product-variation-request.d.ts +4 -3
- package/package.json +1 -1
|
@@ -45,10 +45,11 @@ export declare const GoalsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
45
45
|
* @param {string} id The ID of the goal that the results are looked for
|
|
46
46
|
* @param {string} period_start The start date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or after the goal duration start date.
|
|
47
47
|
* @param {string} period_end The end date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or before the goal duration end date.
|
|
48
|
+
* @param {string} [timezone] The IANA timezone to use when evaluating period boundaries (e.g. `America/Sao_Paulo`). The start and end of the period are interpreted in this timezone. If omitted, defaults to the timezone of the user making the request.
|
|
48
49
|
|
|
49
50
|
* @throws {RequiredError}
|
|
50
51
|
*/
|
|
51
|
-
getGoalResult: (id: string, period_start: string, period_end: string) => Promise<RequestArgs>;
|
|
52
|
+
getGoalResult: (id: string, period_start: string, period_end: string, timezone?: string) => Promise<RequestArgs>;
|
|
52
53
|
/**
|
|
53
54
|
* Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=<true|false>` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa.
|
|
54
55
|
* @summary Find goals
|
|
@@ -122,20 +123,22 @@ export declare const GoalsApiFp: (configuration?: Configuration) => {
|
|
|
122
123
|
* @param {string} id The ID of the goal that the results are looked for
|
|
123
124
|
* @param {string} period_start The start date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or after the goal duration start date.
|
|
124
125
|
* @param {string} period_end The end date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or before the goal duration end date.
|
|
126
|
+
* @param {string} [timezone] The IANA timezone to use when evaluating period boundaries (e.g. `America/Sao_Paulo`). The start and end of the period are interpreted in this timezone. If omitted, defaults to the timezone of the user making the request.
|
|
125
127
|
|
|
126
128
|
* @throws {RequiredError}
|
|
127
129
|
*/
|
|
128
|
-
getGoalResult(id: string, period_start: string, period_end: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetGoalResultResponse>>;
|
|
130
|
+
getGoalResult(id: string, period_start: string, period_end: string, timezone?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetGoalResultResponse>>;
|
|
129
131
|
/**
|
|
130
132
|
* Same as `getGoalResult`, but resolves with the response body together with the HTTP status and headers.
|
|
131
133
|
* @summary Get result of a goal
|
|
132
134
|
* @param {string} id The ID of the goal that the results are looked for
|
|
133
135
|
* @param {string} period_start The start date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or after the goal duration start date.
|
|
134
136
|
* @param {string} period_end The end date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or before the goal duration end date.
|
|
137
|
+
* @param {string} [timezone] The IANA timezone to use when evaluating period boundaries (e.g. `America/Sao_Paulo`). The start and end of the period are interpreted in this timezone. If omitted, defaults to the timezone of the user making the request.
|
|
135
138
|
|
|
136
139
|
* @throws {RequiredError}
|
|
137
140
|
*/
|
|
138
|
-
getGoalResultWithHttpInfo(id: string, period_start: string, period_end: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetGoalResultResponse>>>;
|
|
141
|
+
getGoalResultWithHttpInfo(id: string, period_start: string, period_end: string, timezone?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetGoalResultResponse>>>;
|
|
139
142
|
/**
|
|
140
143
|
* Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=<true|false>` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa.
|
|
141
144
|
* @summary Find goals
|
|
@@ -296,6 +299,12 @@ export interface GoalsApiGetGoalResultRequest {
|
|
|
296
299
|
* @memberof GoalsApiGetGoalResult
|
|
297
300
|
*/
|
|
298
301
|
readonly period_end: string;
|
|
302
|
+
/**
|
|
303
|
+
* The IANA timezone to use when evaluating period boundaries (e.g. `America/Sao_Paulo`). The start and end of the period are interpreted in this timezone. If omitted, defaults to the timezone of the user making the request.
|
|
304
|
+
* @type {string}
|
|
305
|
+
* @memberof GoalsApiGetGoalResult
|
|
306
|
+
*/
|
|
307
|
+
readonly timezone?: string;
|
|
299
308
|
}
|
|
300
309
|
/**
|
|
301
310
|
* Request parameters for getGoals operation in GoalsApi.
|
|
@@ -105,10 +105,11 @@ export const GoalsApiAxiosParamCreator = function (configuration) {
|
|
|
105
105
|
* @param {string} id The ID of the goal that the results are looked for
|
|
106
106
|
* @param {string} period_start The start date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or after the goal duration start date.
|
|
107
107
|
* @param {string} period_end The end date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or before the goal duration end date.
|
|
108
|
+
* @param {string} [timezone] The IANA timezone to use when evaluating period boundaries (e.g. `America/Sao_Paulo`). The start and end of the period are interpreted in this timezone. If omitted, defaults to the timezone of the user making the request.
|
|
108
109
|
|
|
109
110
|
* @throws {RequiredError}
|
|
110
111
|
*/
|
|
111
|
-
getGoalResult: (id, period_start, period_end) => __awaiter(this, void 0, void 0, function* () {
|
|
112
|
+
getGoalResult: (id, period_start, period_end, timezone) => __awaiter(this, void 0, void 0, function* () {
|
|
112
113
|
// verify required parameter 'id' is not null or undefined
|
|
113
114
|
assertParamExists('getGoalResult', 'id', id);
|
|
114
115
|
// verify required parameter 'period_start' is not null or undefined
|
|
@@ -141,6 +142,9 @@ export const GoalsApiAxiosParamCreator = function (configuration) {
|
|
|
141
142
|
period_end.toISOString().substr(0, 10) :
|
|
142
143
|
period_end;
|
|
143
144
|
}
|
|
145
|
+
if (timezone !== undefined) {
|
|
146
|
+
localVarQueryParameter['timezone'] = timezone;
|
|
147
|
+
}
|
|
144
148
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
145
149
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146
150
|
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
@@ -339,12 +343,13 @@ export const GoalsApiFp = function (configuration) {
|
|
|
339
343
|
* @param {string} id The ID of the goal that the results are looked for
|
|
340
344
|
* @param {string} period_start The start date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or after the goal duration start date.
|
|
341
345
|
* @param {string} period_end The end date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or before the goal duration end date.
|
|
346
|
+
* @param {string} [timezone] The IANA timezone to use when evaluating period boundaries (e.g. `America/Sao_Paulo`). The start and end of the period are interpreted in this timezone. If omitted, defaults to the timezone of the user making the request.
|
|
342
347
|
|
|
343
348
|
* @throws {RequiredError}
|
|
344
349
|
*/
|
|
345
|
-
getGoalResult(id, period_start, period_end) {
|
|
350
|
+
getGoalResult(id, period_start, period_end, timezone) {
|
|
346
351
|
return __awaiter(this, void 0, void 0, function* () {
|
|
347
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getGoalResult(id, period_start, period_end);
|
|
352
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getGoalResult(id, period_start, period_end, timezone);
|
|
348
353
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
349
354
|
});
|
|
350
355
|
},
|
|
@@ -354,12 +359,13 @@ export const GoalsApiFp = function (configuration) {
|
|
|
354
359
|
* @param {string} id The ID of the goal that the results are looked for
|
|
355
360
|
* @param {string} period_start The start date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or after the goal duration start date.
|
|
356
361
|
* @param {string} period_end The end date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or before the goal duration end date.
|
|
362
|
+
* @param {string} [timezone] The IANA timezone to use when evaluating period boundaries (e.g. `America/Sao_Paulo`). The start and end of the period are interpreted in this timezone. If omitted, defaults to the timezone of the user making the request.
|
|
357
363
|
|
|
358
364
|
* @throws {RequiredError}
|
|
359
365
|
*/
|
|
360
|
-
getGoalResultWithHttpInfo(id, period_start, period_end) {
|
|
366
|
+
getGoalResultWithHttpInfo(id, period_start, period_end, timezone) {
|
|
361
367
|
return __awaiter(this, void 0, void 0, function* () {
|
|
362
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getGoalResult(id, period_start, period_end);
|
|
368
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getGoalResult(id, period_start, period_end, timezone);
|
|
363
369
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
364
370
|
});
|
|
365
371
|
},
|
|
@@ -484,10 +490,10 @@ export const GoalsApiFactory = function (configuration, basePath, axios) {
|
|
|
484
490
|
* @throws {RequiredError}
|
|
485
491
|
*/
|
|
486
492
|
getGoalResult(requestParameters) {
|
|
487
|
-
return localVarFp.getGoalResult(requestParameters.id, requestParameters.period_start, requestParameters.period_end).then((request) => request(axios, basePath));
|
|
493
|
+
return localVarFp.getGoalResult(requestParameters.id, requestParameters.period_start, requestParameters.period_end, requestParameters.timezone).then((request) => request(axios, basePath));
|
|
488
494
|
},
|
|
489
495
|
getGoalResultWithHttpInfo(requestParameters) {
|
|
490
|
-
return localVarFp.getGoalResultWithHttpInfo(requestParameters.id, requestParameters.period_start, requestParameters.period_end).then((request) => request(axios, basePath));
|
|
496
|
+
return localVarFp.getGoalResultWithHttpInfo(requestParameters.id, requestParameters.period_start, requestParameters.period_end, requestParameters.timezone).then((request) => request(axios, basePath));
|
|
491
497
|
},
|
|
492
498
|
/**
|
|
493
499
|
* Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=<true|false>` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa.
|
|
@@ -577,7 +583,7 @@ export class GoalsApi extends BaseAPI {
|
|
|
577
583
|
* @memberof GoalsApi
|
|
578
584
|
*/
|
|
579
585
|
getGoalResult(requestParameters) {
|
|
580
|
-
return GoalsApiFp(this.configuration).getGoalResult(requestParameters.id, requestParameters.period_start, requestParameters.period_end).then((request) => request(this.axios, this.basePath));
|
|
586
|
+
return GoalsApiFp(this.configuration).getGoalResult(requestParameters.id, requestParameters.period_start, requestParameters.period_end, requestParameters.timezone).then((request) => request(this.axios, this.basePath));
|
|
581
587
|
}
|
|
582
588
|
/**
|
|
583
589
|
* Same as `getGoalResult`, but resolves with the response body together with the HTTP status and headers.
|
|
@@ -588,7 +594,7 @@ export class GoalsApi extends BaseAPI {
|
|
|
588
594
|
* @memberof GoalsApi
|
|
589
595
|
*/
|
|
590
596
|
getGoalResultWithHttpInfo(requestParameters) {
|
|
591
|
-
return GoalsApiFp(this.configuration).getGoalResultWithHttpInfo(requestParameters.id, requestParameters.period_start, requestParameters.period_end).then((request) => request(this.axios, this.basePath));
|
|
597
|
+
return GoalsApiFp(this.configuration).getGoalResultWithHttpInfo(requestParameters.id, requestParameters.period_start, requestParameters.period_end, requestParameters.timezone).then((request) => request(this.axios, this.basePath));
|
|
592
598
|
}
|
|
593
599
|
/**
|
|
594
600
|
* Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=<true|false>` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa.
|
|
@@ -34,12 +34,12 @@ export interface MailMessageDataFromInner {
|
|
|
34
34
|
* ID of the linked person to the mail message
|
|
35
35
|
* @type {number}
|
|
36
36
|
*/
|
|
37
|
-
'linked_person_id'?: number;
|
|
37
|
+
'linked_person_id'?: number | null;
|
|
38
38
|
/**
|
|
39
39
|
* Name of the linked person to the mail message
|
|
40
40
|
* @type {string}
|
|
41
41
|
*/
|
|
42
|
-
'linked_person_name'?: string;
|
|
42
|
+
'linked_person_name'?: string | null;
|
|
43
43
|
/**
|
|
44
44
|
* ID of the mail message participant
|
|
45
45
|
* @type {number}
|
|
@@ -95,7 +95,7 @@ export interface MailMessageData {
|
|
|
95
95
|
* If the mail message has a draft status then the value is the mail message object as JSON formatted string, otherwise `null`.
|
|
96
96
|
* @type {string}
|
|
97
97
|
*/
|
|
98
|
-
'draft'?: string;
|
|
98
|
+
'draft'?: string | null;
|
|
99
99
|
/**
|
|
100
100
|
*
|
|
101
101
|
* @type {number}
|
|
@@ -44,12 +44,12 @@ export interface MailThreadAllOf1PartiesToInner {
|
|
|
44
44
|
* ID of the linked person
|
|
45
45
|
* @type {number}
|
|
46
46
|
*/
|
|
47
|
-
'linked_person_id'?: number;
|
|
47
|
+
'linked_person_id'?: number | null;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Name of the linked person
|
|
50
50
|
* @type {string}
|
|
51
51
|
*/
|
|
52
|
-
'linked_person_name'?: string;
|
|
52
|
+
'linked_person_name'?: string | null;
|
|
53
53
|
/**
|
|
54
54
|
* ID of the mail message party
|
|
55
55
|
* @type {number}
|
|
@@ -22,10 +22,10 @@ export interface MailThreadAllOf1 {
|
|
|
22
22
|
*/
|
|
23
23
|
'parties'?: MailThreadAllOf1Parties;
|
|
24
24
|
/**
|
|
25
|
-
* Parties of the drafted mail thread
|
|
25
|
+
* Parties of the drafted mail thread. `null` if the mail thread has no drafts.
|
|
26
26
|
* @type {Array<object>}
|
|
27
27
|
*/
|
|
28
|
-
'drafts_parties'?: Array<object
|
|
28
|
+
'drafts_parties'?: Array<object> | null;
|
|
29
29
|
/**
|
|
30
30
|
* Folders in which messages from thread are being stored
|
|
31
31
|
* @type {Array<string>}
|
|
@@ -45,7 +45,7 @@ export interface MailThreadAllOf1 {
|
|
|
45
45
|
* A snippet from a message sent
|
|
46
46
|
* @type {string}
|
|
47
47
|
*/
|
|
48
|
-
'snippet_sent'?: string;
|
|
48
|
+
'snippet_sent'?: string | null;
|
|
49
49
|
/**
|
|
50
50
|
* An amount of messages
|
|
51
51
|
* @type {number}
|
|
@@ -62,10 +62,10 @@ export interface MailThreadAllOf1 {
|
|
|
62
62
|
*/
|
|
63
63
|
'has_sent_flag'?: MailThreadAllOf1HasSentFlagConst;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Whether the mail thread is archived. `null` if the mail thread has not been explicitly archived or unarchived in Pipedrive.
|
|
66
66
|
* @type {number}
|
|
67
67
|
*/
|
|
68
|
-
'archived_flag'?: MailThreadAllOf1ArchivedFlagConst;
|
|
68
|
+
'archived_flag'?: MailThreadAllOf1ArchivedFlagConst | null;
|
|
69
69
|
/**
|
|
70
70
|
*
|
|
71
71
|
* @type {number}
|
|
@@ -100,7 +100,7 @@ export interface MailThreadAllOf1 {
|
|
|
100
100
|
* The last time when the mail thread has had a message received
|
|
101
101
|
* @type {string}
|
|
102
102
|
*/
|
|
103
|
-
'last_message_received_timestamp'?: string;
|
|
103
|
+
'last_message_received_timestamp'?: string | null;
|
|
104
104
|
/**
|
|
105
105
|
* The time when the mail thread was inserted to database
|
|
106
106
|
* @type {string}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ProductVariationPriceRequest } from './product-variation-price-request';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -21,8 +22,8 @@ export interface AddProductVariationRequest {
|
|
|
21
22
|
*/
|
|
22
23
|
'name': string;
|
|
23
24
|
/**
|
|
24
|
-
* Array of
|
|
25
|
-
* @type {Array<
|
|
25
|
+
* Array of prices of the product variation. When prices is omitted altogether, a default price of 0, a default cost of 0, a default direct_cost of 0 and the user\'s default currency will be assigned.
|
|
26
|
+
* @type {Array<ProductVariationPriceRequest>}
|
|
26
27
|
*/
|
|
27
|
-
'prices'?: Array<
|
|
28
|
+
'prices'?: Array<ProductVariationPriceRequest>;
|
|
28
29
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pipedrive API v2
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.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 BaseProductVariationPrice
|
|
16
|
+
*/
|
|
17
|
+
export interface BaseProductVariationPrice {
|
|
18
|
+
/**
|
|
19
|
+
* The price of the product variation
|
|
20
|
+
* @type {number}
|
|
21
|
+
*/
|
|
22
|
+
'price'?: number;
|
|
23
|
+
/**
|
|
24
|
+
* The cost of the product variation
|
|
25
|
+
* @type {number}
|
|
26
|
+
*/
|
|
27
|
+
'cost'?: number;
|
|
28
|
+
/**
|
|
29
|
+
* The currency of the price
|
|
30
|
+
* @type {string}
|
|
31
|
+
*/
|
|
32
|
+
'currency'?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The direct cost of the product variation
|
|
35
|
+
* @type {number}
|
|
36
|
+
*/
|
|
37
|
+
'direct_cost'?: number;
|
|
38
|
+
/**
|
|
39
|
+
* The notes about the price
|
|
40
|
+
* @type {string}
|
|
41
|
+
*/
|
|
42
|
+
'notes'?: string;
|
|
43
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Pipedrive API v2
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ProductVariationPrice } from './product-variation-price';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -31,8 +32,8 @@ export interface GetProductVariationsResponseDataInner {
|
|
|
31
32
|
*/
|
|
32
33
|
'product_id'?: number;
|
|
33
34
|
/**
|
|
34
|
-
* Array of
|
|
35
|
-
* @type {Array<
|
|
35
|
+
* Array of prices of the product variation
|
|
36
|
+
* @type {Array<ProductVariationPrice>}
|
|
36
37
|
*/
|
|
37
|
-
'prices'?: Array<
|
|
38
|
+
'prices'?: Array<ProductVariationPrice>;
|
|
38
39
|
}
|
|
@@ -65,6 +65,7 @@ export * from './add-task-response';
|
|
|
65
65
|
export * from './base-product';
|
|
66
66
|
export * from './base-product-all-of';
|
|
67
67
|
export * from './base-product-all-of1';
|
|
68
|
+
export * from './base-product-variation-price';
|
|
68
69
|
export * from './base-response';
|
|
69
70
|
export * from './convert-lead-to-deal-request';
|
|
70
71
|
export * from './create-many-deal-product-request';
|
|
@@ -264,6 +265,9 @@ export * from './prices-array';
|
|
|
264
265
|
export * from './product-price';
|
|
265
266
|
export * from './product-price-request';
|
|
266
267
|
export * from './product-request';
|
|
268
|
+
export * from './product-variation-price';
|
|
269
|
+
export * from './product-variation-price-all-of';
|
|
270
|
+
export * from './product-variation-price-request';
|
|
267
271
|
export * from './project';
|
|
268
272
|
export * from './project-template';
|
|
269
273
|
export * from './stage-item';
|
|
@@ -65,6 +65,7 @@ export * from './add-task-response';
|
|
|
65
65
|
export * from './base-product';
|
|
66
66
|
export * from './base-product-all-of';
|
|
67
67
|
export * from './base-product-all-of1';
|
|
68
|
+
export * from './base-product-variation-price';
|
|
68
69
|
export * from './base-response';
|
|
69
70
|
export * from './convert-lead-to-deal-request';
|
|
70
71
|
export * from './create-many-deal-product-request';
|
|
@@ -264,6 +265,9 @@ export * from './prices-array';
|
|
|
264
265
|
export * from './product-price';
|
|
265
266
|
export * from './product-price-request';
|
|
266
267
|
export * from './product-request';
|
|
268
|
+
export * from './product-variation-price';
|
|
269
|
+
export * from './product-variation-price-all-of';
|
|
270
|
+
export * from './product-variation-price-request';
|
|
267
271
|
export * from './project';
|
|
268
272
|
export * from './project-template';
|
|
269
273
|
export * from './stage-item';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pipedrive API v2
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.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 ProductVariationPriceAllOf
|
|
16
|
+
*/
|
|
17
|
+
export interface ProductVariationPriceAllOf {
|
|
18
|
+
/**
|
|
19
|
+
* The ID of the product variation
|
|
20
|
+
* @type {number}
|
|
21
|
+
*/
|
|
22
|
+
'product_variation_id'?: number;
|
|
23
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Pipedrive API v2
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pipedrive API v2
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.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 { BaseProductVariationPrice } from './base-product-variation-price';
|
|
13
|
+
/**
|
|
14
|
+
* @type ProductVariationPriceRequest
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export type ProductVariationPriceRequest = BaseProductVariationPrice;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Pipedrive API v2
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pipedrive API v2
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.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 { BaseProductVariationPrice } from './base-product-variation-price';
|
|
13
|
+
import { ProductVariationPriceAllOf } from './product-variation-price-all-of';
|
|
14
|
+
/**
|
|
15
|
+
* @type ProductVariationPrice
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export type ProductVariationPrice = BaseProductVariationPrice & ProductVariationPriceAllOf;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Pipedrive API v2
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ProductVariationPriceRequest } from './product-variation-price-request';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -21,8 +22,8 @@ export interface UpdateProductVariationRequest {
|
|
|
21
22
|
*/
|
|
22
23
|
'name'?: string;
|
|
23
24
|
/**
|
|
24
|
-
* Array of
|
|
25
|
-
* @type {Array<
|
|
25
|
+
* Array of prices of the product variation. When prices is omitted altogether, a default price of 0, a default cost of 0, a default direct_cost of 0 and the user\'s default currency will be assigned.
|
|
26
|
+
* @type {Array<ProductVariationPriceRequest>}
|
|
26
27
|
*/
|
|
27
|
-
'prices'?: Array<
|
|
28
|
+
'prices'?: Array<ProductVariationPriceRequest>;
|
|
28
29
|
}
|
|
@@ -45,10 +45,11 @@ export declare const GoalsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
45
45
|
* @param {string} id The ID of the goal that the results are looked for
|
|
46
46
|
* @param {string} period_start The start date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or after the goal duration start date.
|
|
47
47
|
* @param {string} period_end The end date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or before the goal duration end date.
|
|
48
|
+
* @param {string} [timezone] The IANA timezone to use when evaluating period boundaries (e.g. `America/Sao_Paulo`). The start and end of the period are interpreted in this timezone. If omitted, defaults to the timezone of the user making the request.
|
|
48
49
|
|
|
49
50
|
* @throws {RequiredError}
|
|
50
51
|
*/
|
|
51
|
-
getGoalResult: (id: string, period_start: string, period_end: string) => Promise<RequestArgs>;
|
|
52
|
+
getGoalResult: (id: string, period_start: string, period_end: string, timezone?: string) => Promise<RequestArgs>;
|
|
52
53
|
/**
|
|
53
54
|
* Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=<true|false>` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa.
|
|
54
55
|
* @summary Find goals
|
|
@@ -122,20 +123,22 @@ export declare const GoalsApiFp: (configuration?: Configuration) => {
|
|
|
122
123
|
* @param {string} id The ID of the goal that the results are looked for
|
|
123
124
|
* @param {string} period_start The start date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or after the goal duration start date.
|
|
124
125
|
* @param {string} period_end The end date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or before the goal duration end date.
|
|
126
|
+
* @param {string} [timezone] The IANA timezone to use when evaluating period boundaries (e.g. `America/Sao_Paulo`). The start and end of the period are interpreted in this timezone. If omitted, defaults to the timezone of the user making the request.
|
|
125
127
|
|
|
126
128
|
* @throws {RequiredError}
|
|
127
129
|
*/
|
|
128
|
-
getGoalResult(id: string, period_start: string, period_end: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetGoalResultResponse>>;
|
|
130
|
+
getGoalResult(id: string, period_start: string, period_end: string, timezone?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetGoalResultResponse>>;
|
|
129
131
|
/**
|
|
130
132
|
* Same as `getGoalResult`, but resolves with the response body together with the HTTP status and headers.
|
|
131
133
|
* @summary Get result of a goal
|
|
132
134
|
* @param {string} id The ID of the goal that the results are looked for
|
|
133
135
|
* @param {string} period_start The start date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or after the goal duration start date.
|
|
134
136
|
* @param {string} period_end The end date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or before the goal duration end date.
|
|
137
|
+
* @param {string} [timezone] The IANA timezone to use when evaluating period boundaries (e.g. `America/Sao_Paulo`). The start and end of the period are interpreted in this timezone. If omitted, defaults to the timezone of the user making the request.
|
|
135
138
|
|
|
136
139
|
* @throws {RequiredError}
|
|
137
140
|
*/
|
|
138
|
-
getGoalResultWithHttpInfo(id: string, period_start: string, period_end: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetGoalResultResponse>>>;
|
|
141
|
+
getGoalResultWithHttpInfo(id: string, period_start: string, period_end: string, timezone?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetGoalResultResponse>>>;
|
|
139
142
|
/**
|
|
140
143
|
* Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=<true|false>` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa.
|
|
141
144
|
* @summary Find goals
|
|
@@ -296,6 +299,12 @@ export interface GoalsApiGetGoalResultRequest {
|
|
|
296
299
|
* @memberof GoalsApiGetGoalResult
|
|
297
300
|
*/
|
|
298
301
|
readonly period_end: string;
|
|
302
|
+
/**
|
|
303
|
+
* The IANA timezone to use when evaluating period boundaries (e.g. `America/Sao_Paulo`). The start and end of the period are interpreted in this timezone. If omitted, defaults to the timezone of the user making the request.
|
|
304
|
+
* @type {string}
|
|
305
|
+
* @memberof GoalsApiGetGoalResult
|
|
306
|
+
*/
|
|
307
|
+
readonly timezone?: string;
|
|
299
308
|
}
|
|
300
309
|
/**
|
|
301
310
|
* Request parameters for getGoals operation in GoalsApi.
|
|
@@ -111,10 +111,11 @@ const GoalsApiAxiosParamCreator = function (configuration) {
|
|
|
111
111
|
* @param {string} id The ID of the goal that the results are looked for
|
|
112
112
|
* @param {string} period_start The start date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or after the goal duration start date.
|
|
113
113
|
* @param {string} period_end The end date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or before the goal duration end date.
|
|
114
|
+
* @param {string} [timezone] The IANA timezone to use when evaluating period boundaries (e.g. `America/Sao_Paulo`). The start and end of the period are interpreted in this timezone. If omitted, defaults to the timezone of the user making the request.
|
|
114
115
|
|
|
115
116
|
* @throws {RequiredError}
|
|
116
117
|
*/
|
|
117
|
-
getGoalResult: (id, period_start, period_end) => __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
getGoalResult: (id, period_start, period_end, timezone) => __awaiter(this, void 0, void 0, function* () {
|
|
118
119
|
// verify required parameter 'id' is not null or undefined
|
|
119
120
|
(0, common_1.assertParamExists)('getGoalResult', 'id', id);
|
|
120
121
|
// verify required parameter 'period_start' is not null or undefined
|
|
@@ -147,6 +148,9 @@ const GoalsApiAxiosParamCreator = function (configuration) {
|
|
|
147
148
|
period_end.toISOString().substr(0, 10) :
|
|
148
149
|
period_end;
|
|
149
150
|
}
|
|
151
|
+
if (timezone !== undefined) {
|
|
152
|
+
localVarQueryParameter['timezone'] = timezone;
|
|
153
|
+
}
|
|
150
154
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
151
155
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
152
156
|
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
@@ -346,12 +350,13 @@ const GoalsApiFp = function (configuration) {
|
|
|
346
350
|
* @param {string} id The ID of the goal that the results are looked for
|
|
347
351
|
* @param {string} period_start The start date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or after the goal duration start date.
|
|
348
352
|
* @param {string} period_end The end date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or before the goal duration end date.
|
|
353
|
+
* @param {string} [timezone] The IANA timezone to use when evaluating period boundaries (e.g. `America/Sao_Paulo`). The start and end of the period are interpreted in this timezone. If omitted, defaults to the timezone of the user making the request.
|
|
349
354
|
|
|
350
355
|
* @throws {RequiredError}
|
|
351
356
|
*/
|
|
352
|
-
getGoalResult(id, period_start, period_end) {
|
|
357
|
+
getGoalResult(id, period_start, period_end, timezone) {
|
|
353
358
|
return __awaiter(this, void 0, void 0, function* () {
|
|
354
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getGoalResult(id, period_start, period_end);
|
|
359
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getGoalResult(id, period_start, period_end, timezone);
|
|
355
360
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
356
361
|
});
|
|
357
362
|
},
|
|
@@ -361,12 +366,13 @@ const GoalsApiFp = function (configuration) {
|
|
|
361
366
|
* @param {string} id The ID of the goal that the results are looked for
|
|
362
367
|
* @param {string} period_start The start date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or after the goal duration start date.
|
|
363
368
|
* @param {string} period_end The end date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or before the goal duration end date.
|
|
369
|
+
* @param {string} [timezone] The IANA timezone to use when evaluating period boundaries (e.g. `America/Sao_Paulo`). The start and end of the period are interpreted in this timezone. If omitted, defaults to the timezone of the user making the request.
|
|
364
370
|
|
|
365
371
|
* @throws {RequiredError}
|
|
366
372
|
*/
|
|
367
|
-
getGoalResultWithHttpInfo(id, period_start, period_end) {
|
|
373
|
+
getGoalResultWithHttpInfo(id, period_start, period_end, timezone) {
|
|
368
374
|
return __awaiter(this, void 0, void 0, function* () {
|
|
369
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getGoalResult(id, period_start, period_end);
|
|
375
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getGoalResult(id, period_start, period_end, timezone);
|
|
370
376
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
371
377
|
});
|
|
372
378
|
},
|
|
@@ -492,10 +498,10 @@ const GoalsApiFactory = function (configuration, basePath, axios) {
|
|
|
492
498
|
* @throws {RequiredError}
|
|
493
499
|
*/
|
|
494
500
|
getGoalResult(requestParameters) {
|
|
495
|
-
return localVarFp.getGoalResult(requestParameters.id, requestParameters.period_start, requestParameters.period_end).then((request) => request(axios, basePath));
|
|
501
|
+
return localVarFp.getGoalResult(requestParameters.id, requestParameters.period_start, requestParameters.period_end, requestParameters.timezone).then((request) => request(axios, basePath));
|
|
496
502
|
},
|
|
497
503
|
getGoalResultWithHttpInfo(requestParameters) {
|
|
498
|
-
return localVarFp.getGoalResultWithHttpInfo(requestParameters.id, requestParameters.period_start, requestParameters.period_end).then((request) => request(axios, basePath));
|
|
504
|
+
return localVarFp.getGoalResultWithHttpInfo(requestParameters.id, requestParameters.period_start, requestParameters.period_end, requestParameters.timezone).then((request) => request(axios, basePath));
|
|
499
505
|
},
|
|
500
506
|
/**
|
|
501
507
|
* Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=<true|false>` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa.
|
|
@@ -586,7 +592,7 @@ class GoalsApi extends base_1.BaseAPI {
|
|
|
586
592
|
* @memberof GoalsApi
|
|
587
593
|
*/
|
|
588
594
|
getGoalResult(requestParameters) {
|
|
589
|
-
return (0, exports.GoalsApiFp)(this.configuration).getGoalResult(requestParameters.id, requestParameters.period_start, requestParameters.period_end).then((request) => request(this.axios, this.basePath));
|
|
595
|
+
return (0, exports.GoalsApiFp)(this.configuration).getGoalResult(requestParameters.id, requestParameters.period_start, requestParameters.period_end, requestParameters.timezone).then((request) => request(this.axios, this.basePath));
|
|
590
596
|
}
|
|
591
597
|
/**
|
|
592
598
|
* Same as `getGoalResult`, but resolves with the response body together with the HTTP status and headers.
|
|
@@ -597,7 +603,7 @@ class GoalsApi extends base_1.BaseAPI {
|
|
|
597
603
|
* @memberof GoalsApi
|
|
598
604
|
*/
|
|
599
605
|
getGoalResultWithHttpInfo(requestParameters) {
|
|
600
|
-
return (0, exports.GoalsApiFp)(this.configuration).getGoalResultWithHttpInfo(requestParameters.id, requestParameters.period_start, requestParameters.period_end).then((request) => request(this.axios, this.basePath));
|
|
606
|
+
return (0, exports.GoalsApiFp)(this.configuration).getGoalResultWithHttpInfo(requestParameters.id, requestParameters.period_start, requestParameters.period_end, requestParameters.timezone).then((request) => request(this.axios, this.basePath));
|
|
601
607
|
}
|
|
602
608
|
/**
|
|
603
609
|
* Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=<true|false>` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa.
|
|
@@ -34,12 +34,12 @@ export interface MailMessageDataFromInner {
|
|
|
34
34
|
* ID of the linked person to the mail message
|
|
35
35
|
* @type {number}
|
|
36
36
|
*/
|
|
37
|
-
'linked_person_id'?: number;
|
|
37
|
+
'linked_person_id'?: number | null;
|
|
38
38
|
/**
|
|
39
39
|
* Name of the linked person to the mail message
|
|
40
40
|
* @type {string}
|
|
41
41
|
*/
|
|
42
|
-
'linked_person_name'?: string;
|
|
42
|
+
'linked_person_name'?: string | null;
|
|
43
43
|
/**
|
|
44
44
|
* ID of the mail message participant
|
|
45
45
|
* @type {number}
|
|
@@ -95,7 +95,7 @@ export interface MailMessageData {
|
|
|
95
95
|
* If the mail message has a draft status then the value is the mail message object as JSON formatted string, otherwise `null`.
|
|
96
96
|
* @type {string}
|
|
97
97
|
*/
|
|
98
|
-
'draft'?: string;
|
|
98
|
+
'draft'?: string | null;
|
|
99
99
|
/**
|
|
100
100
|
*
|
|
101
101
|
* @type {number}
|
|
@@ -44,12 +44,12 @@ export interface MailThreadAllOf1PartiesToInner {
|
|
|
44
44
|
* ID of the linked person
|
|
45
45
|
* @type {number}
|
|
46
46
|
*/
|
|
47
|
-
'linked_person_id'?: number;
|
|
47
|
+
'linked_person_id'?: number | null;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Name of the linked person
|
|
50
50
|
* @type {string}
|
|
51
51
|
*/
|
|
52
|
-
'linked_person_name'?: string;
|
|
52
|
+
'linked_person_name'?: string | null;
|
|
53
53
|
/**
|
|
54
54
|
* ID of the mail message party
|
|
55
55
|
* @type {number}
|
|
@@ -22,10 +22,10 @@ export interface MailThreadAllOf1 {
|
|
|
22
22
|
*/
|
|
23
23
|
'parties'?: MailThreadAllOf1Parties;
|
|
24
24
|
/**
|
|
25
|
-
* Parties of the drafted mail thread
|
|
25
|
+
* Parties of the drafted mail thread. `null` if the mail thread has no drafts.
|
|
26
26
|
* @type {Array<object>}
|
|
27
27
|
*/
|
|
28
|
-
'drafts_parties'?: Array<object
|
|
28
|
+
'drafts_parties'?: Array<object> | null;
|
|
29
29
|
/**
|
|
30
30
|
* Folders in which messages from thread are being stored
|
|
31
31
|
* @type {Array<string>}
|
|
@@ -45,7 +45,7 @@ export interface MailThreadAllOf1 {
|
|
|
45
45
|
* A snippet from a message sent
|
|
46
46
|
* @type {string}
|
|
47
47
|
*/
|
|
48
|
-
'snippet_sent'?: string;
|
|
48
|
+
'snippet_sent'?: string | null;
|
|
49
49
|
/**
|
|
50
50
|
* An amount of messages
|
|
51
51
|
* @type {number}
|
|
@@ -62,10 +62,10 @@ export interface MailThreadAllOf1 {
|
|
|
62
62
|
*/
|
|
63
63
|
'has_sent_flag'?: MailThreadAllOf1HasSentFlagConst;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Whether the mail thread is archived. `null` if the mail thread has not been explicitly archived or unarchived in Pipedrive.
|
|
66
66
|
* @type {number}
|
|
67
67
|
*/
|
|
68
|
-
'archived_flag'?: MailThreadAllOf1ArchivedFlagConst;
|
|
68
|
+
'archived_flag'?: MailThreadAllOf1ArchivedFlagConst | null;
|
|
69
69
|
/**
|
|
70
70
|
*
|
|
71
71
|
* @type {number}
|
|
@@ -100,7 +100,7 @@ export interface MailThreadAllOf1 {
|
|
|
100
100
|
* The last time when the mail thread has had a message received
|
|
101
101
|
* @type {string}
|
|
102
102
|
*/
|
|
103
|
-
'last_message_received_timestamp'?: string;
|
|
103
|
+
'last_message_received_timestamp'?: string | null;
|
|
104
104
|
/**
|
|
105
105
|
* The time when the mail thread was inserted to database
|
|
106
106
|
* @type {string}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ProductVariationPriceRequest } from './product-variation-price-request';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -21,8 +22,8 @@ export interface AddProductVariationRequest {
|
|
|
21
22
|
*/
|
|
22
23
|
'name': string;
|
|
23
24
|
/**
|
|
24
|
-
* Array of
|
|
25
|
-
* @type {Array<
|
|
25
|
+
* Array of prices of the product variation. When prices is omitted altogether, a default price of 0, a default cost of 0, a default direct_cost of 0 and the user\'s default currency will be assigned.
|
|
26
|
+
* @type {Array<ProductVariationPriceRequest>}
|
|
26
27
|
*/
|
|
27
|
-
'prices'?: Array<
|
|
28
|
+
'prices'?: Array<ProductVariationPriceRequest>;
|
|
28
29
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pipedrive API v2
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.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 BaseProductVariationPrice
|
|
16
|
+
*/
|
|
17
|
+
export interface BaseProductVariationPrice {
|
|
18
|
+
/**
|
|
19
|
+
* The price of the product variation
|
|
20
|
+
* @type {number}
|
|
21
|
+
*/
|
|
22
|
+
'price'?: number;
|
|
23
|
+
/**
|
|
24
|
+
* The cost of the product variation
|
|
25
|
+
* @type {number}
|
|
26
|
+
*/
|
|
27
|
+
'cost'?: number;
|
|
28
|
+
/**
|
|
29
|
+
* The currency of the price
|
|
30
|
+
* @type {string}
|
|
31
|
+
*/
|
|
32
|
+
'currency'?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The direct cost of the product variation
|
|
35
|
+
* @type {number}
|
|
36
|
+
*/
|
|
37
|
+
'direct_cost'?: number;
|
|
38
|
+
/**
|
|
39
|
+
* The notes about the price
|
|
40
|
+
* @type {string}
|
|
41
|
+
*/
|
|
42
|
+
'notes'?: string;
|
|
43
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pipedrive API v2
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.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 });
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ProductVariationPrice } from './product-variation-price';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -31,8 +32,8 @@ export interface GetProductVariationsResponseDataInner {
|
|
|
31
32
|
*/
|
|
32
33
|
'product_id'?: number;
|
|
33
34
|
/**
|
|
34
|
-
* Array of
|
|
35
|
-
* @type {Array<
|
|
35
|
+
* Array of prices of the product variation
|
|
36
|
+
* @type {Array<ProductVariationPrice>}
|
|
36
37
|
*/
|
|
37
|
-
'prices'?: Array<
|
|
38
|
+
'prices'?: Array<ProductVariationPrice>;
|
|
38
39
|
}
|
|
@@ -65,6 +65,7 @@ export * from './add-task-response';
|
|
|
65
65
|
export * from './base-product';
|
|
66
66
|
export * from './base-product-all-of';
|
|
67
67
|
export * from './base-product-all-of1';
|
|
68
|
+
export * from './base-product-variation-price';
|
|
68
69
|
export * from './base-response';
|
|
69
70
|
export * from './convert-lead-to-deal-request';
|
|
70
71
|
export * from './create-many-deal-product-request';
|
|
@@ -264,6 +265,9 @@ export * from './prices-array';
|
|
|
264
265
|
export * from './product-price';
|
|
265
266
|
export * from './product-price-request';
|
|
266
267
|
export * from './product-request';
|
|
268
|
+
export * from './product-variation-price';
|
|
269
|
+
export * from './product-variation-price-all-of';
|
|
270
|
+
export * from './product-variation-price-request';
|
|
267
271
|
export * from './project';
|
|
268
272
|
export * from './project-template';
|
|
269
273
|
export * from './stage-item';
|
|
@@ -81,6 +81,7 @@ __exportStar(require("./add-task-response"), exports);
|
|
|
81
81
|
__exportStar(require("./base-product"), exports);
|
|
82
82
|
__exportStar(require("./base-product-all-of"), exports);
|
|
83
83
|
__exportStar(require("./base-product-all-of1"), exports);
|
|
84
|
+
__exportStar(require("./base-product-variation-price"), exports);
|
|
84
85
|
__exportStar(require("./base-response"), exports);
|
|
85
86
|
__exportStar(require("./convert-lead-to-deal-request"), exports);
|
|
86
87
|
__exportStar(require("./create-many-deal-product-request"), exports);
|
|
@@ -280,6 +281,9 @@ __exportStar(require("./prices-array"), exports);
|
|
|
280
281
|
__exportStar(require("./product-price"), exports);
|
|
281
282
|
__exportStar(require("./product-price-request"), exports);
|
|
282
283
|
__exportStar(require("./product-request"), exports);
|
|
284
|
+
__exportStar(require("./product-variation-price"), exports);
|
|
285
|
+
__exportStar(require("./product-variation-price-all-of"), exports);
|
|
286
|
+
__exportStar(require("./product-variation-price-request"), exports);
|
|
283
287
|
__exportStar(require("./project"), exports);
|
|
284
288
|
__exportStar(require("./project-template"), exports);
|
|
285
289
|
__exportStar(require("./stage-item"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pipedrive API v2
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.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 ProductVariationPriceAllOf
|
|
16
|
+
*/
|
|
17
|
+
export interface ProductVariationPriceAllOf {
|
|
18
|
+
/**
|
|
19
|
+
* The ID of the product variation
|
|
20
|
+
* @type {number}
|
|
21
|
+
*/
|
|
22
|
+
'product_variation_id'?: number;
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pipedrive API v2
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.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,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pipedrive API v2
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.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 { BaseProductVariationPrice } from './base-product-variation-price';
|
|
13
|
+
/**
|
|
14
|
+
* @type ProductVariationPriceRequest
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export type ProductVariationPriceRequest = BaseProductVariationPrice;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pipedrive API v2
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.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,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pipedrive API v2
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.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 { BaseProductVariationPrice } from './base-product-variation-price';
|
|
13
|
+
import { ProductVariationPriceAllOf } from './product-variation-price-all-of';
|
|
14
|
+
/**
|
|
15
|
+
* @type ProductVariationPrice
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export type ProductVariationPrice = BaseProductVariationPrice & ProductVariationPriceAllOf;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pipedrive API v2
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.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 });
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ProductVariationPriceRequest } from './product-variation-price-request';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -21,8 +22,8 @@ export interface UpdateProductVariationRequest {
|
|
|
21
22
|
*/
|
|
22
23
|
'name'?: string;
|
|
23
24
|
/**
|
|
24
|
-
* Array of
|
|
25
|
-
* @type {Array<
|
|
25
|
+
* Array of prices of the product variation. When prices is omitted altogether, a default price of 0, a default cost of 0, a default direct_cost of 0 and the user\'s default currency will be assigned.
|
|
26
|
+
* @type {Array<ProductVariationPriceRequest>}
|
|
26
27
|
*/
|
|
27
|
-
'prices'?: Array<
|
|
28
|
+
'prices'?: Array<ProductVariationPriceRequest>;
|
|
28
29
|
}
|