@equisoft/equisoft-connect-sdk-typescript 13.60.0 → 13.60.1-snapshot.20261016132828
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 +2 -0
- package/README.md +1 -0
- package/dist/esm/models/OpportunityCreateOpportunitySchema.d.ts +104 -0
- package/dist/esm/models/OpportunityCreateOpportunitySchema.js +73 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/OpportunityCreateOpportunitySchema.d.ts +104 -0
- package/dist/models/OpportunityCreateOpportunitySchema.js +80 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/OpportunityCreateOpportunitySchema.md +58 -0
- package/package.json +1 -1
- package/src/models/OpportunityCreateOpportunitySchema.ts +165 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -321,6 +321,7 @@ docs/MovementUserTuple.md
|
|
|
321
321
|
docs/MovementUserTuplePayload.md
|
|
322
322
|
docs/MovementValidationError.md
|
|
323
323
|
docs/MovementValidationErrorResponse.md
|
|
324
|
+
docs/OpportunityCreateOpportunitySchema.md
|
|
324
325
|
docs/OpportunityOpportunity.md
|
|
325
326
|
docs/ParametersCompanyResponse.md
|
|
326
327
|
docs/RemoteAccountApi.md
|
|
@@ -675,6 +676,7 @@ src/models/MovementUserTuple.ts
|
|
|
675
676
|
src/models/MovementUserTuplePayload.ts
|
|
676
677
|
src/models/MovementValidationError.ts
|
|
677
678
|
src/models/MovementValidationErrorResponse.ts
|
|
679
|
+
src/models/OpportunityCreateOpportunitySchema.ts
|
|
678
680
|
src/models/OpportunityOpportunity.ts
|
|
679
681
|
src/models/ParametersCompanyResponse.ts
|
|
680
682
|
src/models/TasksCreateTaskPayload.ts
|
package/README.md
CHANGED
|
@@ -512,6 +512,7 @@ All URIs are relative to *http://localhost*
|
|
|
512
512
|
- [MovementUserTuplePayload](docs/MovementUserTuplePayload.md)
|
|
513
513
|
- [MovementValidationError](docs/MovementValidationError.md)
|
|
514
514
|
- [MovementValidationErrorResponse](docs/MovementValidationErrorResponse.md)
|
|
515
|
+
- [OpportunityCreateOpportunitySchema](docs/OpportunityCreateOpportunitySchema.md)
|
|
515
516
|
- [OpportunityOpportunity](docs/OpportunityOpportunity.md)
|
|
516
517
|
- [ParametersCompanyResponse](docs/ParametersCompanyResponse.md)
|
|
517
518
|
- [TasksCreateTaskPayload](docs/TasksCreateTaskPayload.md)
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Equisoft /connect API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
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 OpportunityCreateOpportunitySchema
|
|
16
|
+
*/
|
|
17
|
+
export interface OpportunityCreateOpportunitySchema {
|
|
18
|
+
/**
|
|
19
|
+
* Name.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Reference number.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
28
|
+
*/
|
|
29
|
+
referenceNumber: string;
|
|
30
|
+
/**
|
|
31
|
+
* Step.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
34
|
+
*/
|
|
35
|
+
stepId: number;
|
|
36
|
+
/**
|
|
37
|
+
* Client UUID.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
40
|
+
*/
|
|
41
|
+
clientUuid: string;
|
|
42
|
+
/**
|
|
43
|
+
* Approach Date.
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
46
|
+
*/
|
|
47
|
+
approachDate?: Date | null;
|
|
48
|
+
/**
|
|
49
|
+
* Expected Value.
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
52
|
+
*/
|
|
53
|
+
expectedValue?: number | null;
|
|
54
|
+
/**
|
|
55
|
+
* Expected Income.
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
58
|
+
*/
|
|
59
|
+
expectedIncome?: number | null;
|
|
60
|
+
/**
|
|
61
|
+
* Expected closing date
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
64
|
+
*/
|
|
65
|
+
expectedClosingDate?: Date | null;
|
|
66
|
+
/**
|
|
67
|
+
* Probability. Must be a multiple of 10.
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
70
|
+
*/
|
|
71
|
+
probability?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Source.
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
76
|
+
*/
|
|
77
|
+
sourceId?: number;
|
|
78
|
+
/**
|
|
79
|
+
* Category.
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
82
|
+
*/
|
|
83
|
+
categoryId?: number;
|
|
84
|
+
/**
|
|
85
|
+
* Subcategory.
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
88
|
+
*/
|
|
89
|
+
subcategoryId?: number;
|
|
90
|
+
/**
|
|
91
|
+
* Notes.
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
94
|
+
*/
|
|
95
|
+
notes?: string;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Check if a given object implements the OpportunityCreateOpportunitySchema interface.
|
|
99
|
+
*/
|
|
100
|
+
export declare function instanceOfOpportunityCreateOpportunitySchema(value: object): value is OpportunityCreateOpportunitySchema;
|
|
101
|
+
export declare function OpportunityCreateOpportunitySchemaFromJSON(json: any): OpportunityCreateOpportunitySchema;
|
|
102
|
+
export declare function OpportunityCreateOpportunitySchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpportunityCreateOpportunitySchema;
|
|
103
|
+
export declare function OpportunityCreateOpportunitySchemaToJSON(json: any): OpportunityCreateOpportunitySchema;
|
|
104
|
+
export declare function OpportunityCreateOpportunitySchemaToJSONTyped(value?: OpportunityCreateOpportunitySchema | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Equisoft /connect API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
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
|
+
/**
|
|
15
|
+
* Check if a given object implements the OpportunityCreateOpportunitySchema interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfOpportunityCreateOpportunitySchema(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('referenceNumber' in value) || value['referenceNumber'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('stepId' in value) || value['stepId'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('clientUuid' in value) || value['clientUuid'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function OpportunityCreateOpportunitySchemaFromJSON(json) {
|
|
29
|
+
return OpportunityCreateOpportunitySchemaFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function OpportunityCreateOpportunitySchemaFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'name': json['name'],
|
|
37
|
+
'referenceNumber': json['referenceNumber'],
|
|
38
|
+
'stepId': json['stepId'],
|
|
39
|
+
'clientUuid': json['clientUuid'],
|
|
40
|
+
'approachDate': json['approachDate'] == null ? undefined : (new Date(json['approachDate'])),
|
|
41
|
+
'expectedValue': json['expectedValue'] == null ? undefined : json['expectedValue'],
|
|
42
|
+
'expectedIncome': json['expectedIncome'] == null ? undefined : json['expectedIncome'],
|
|
43
|
+
'expectedClosingDate': json['expectedClosingDate'] == null ? undefined : (new Date(json['expectedClosingDate'])),
|
|
44
|
+
'probability': json['probability'] == null ? undefined : json['probability'],
|
|
45
|
+
'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
|
|
46
|
+
'categoryId': json['categoryId'] == null ? undefined : json['categoryId'],
|
|
47
|
+
'subcategoryId': json['subcategoryId'] == null ? undefined : json['subcategoryId'],
|
|
48
|
+
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function OpportunityCreateOpportunitySchemaToJSON(json) {
|
|
52
|
+
return OpportunityCreateOpportunitySchemaToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function OpportunityCreateOpportunitySchemaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'name': value['name'],
|
|
60
|
+
'referenceNumber': value['referenceNumber'],
|
|
61
|
+
'stepId': value['stepId'],
|
|
62
|
+
'clientUuid': value['clientUuid'],
|
|
63
|
+
'approachDate': value['approachDate'] == null ? value['approachDate'] : value['approachDate'].toISOString().substring(0, 10),
|
|
64
|
+
'expectedValue': value['expectedValue'],
|
|
65
|
+
'expectedIncome': value['expectedIncome'],
|
|
66
|
+
'expectedClosingDate': value['expectedClosingDate'] == null ? value['expectedClosingDate'] : value['expectedClosingDate'].toISOString().substring(0, 10),
|
|
67
|
+
'probability': value['probability'],
|
|
68
|
+
'sourceId': value['sourceId'],
|
|
69
|
+
'categoryId': value['categoryId'],
|
|
70
|
+
'subcategoryId': value['subcategoryId'],
|
|
71
|
+
'notes': value['notes'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -304,6 +304,7 @@ export * from './MovementUserTuple';
|
|
|
304
304
|
export * from './MovementUserTuplePayload';
|
|
305
305
|
export * from './MovementValidationError';
|
|
306
306
|
export * from './MovementValidationErrorResponse';
|
|
307
|
+
export * from './OpportunityCreateOpportunitySchema';
|
|
307
308
|
export * from './OpportunityOpportunity';
|
|
308
309
|
export * from './ParametersCompanyResponse';
|
|
309
310
|
export * from './TasksCreateTaskPayload';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -306,6 +306,7 @@ export * from './MovementUserTuple';
|
|
|
306
306
|
export * from './MovementUserTuplePayload';
|
|
307
307
|
export * from './MovementValidationError';
|
|
308
308
|
export * from './MovementValidationErrorResponse';
|
|
309
|
+
export * from './OpportunityCreateOpportunitySchema';
|
|
309
310
|
export * from './OpportunityOpportunity';
|
|
310
311
|
export * from './ParametersCompanyResponse';
|
|
311
312
|
export * from './TasksCreateTaskPayload';
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Equisoft /connect API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
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 OpportunityCreateOpportunitySchema
|
|
16
|
+
*/
|
|
17
|
+
export interface OpportunityCreateOpportunitySchema {
|
|
18
|
+
/**
|
|
19
|
+
* Name.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Reference number.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
28
|
+
*/
|
|
29
|
+
referenceNumber: string;
|
|
30
|
+
/**
|
|
31
|
+
* Step.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
34
|
+
*/
|
|
35
|
+
stepId: number;
|
|
36
|
+
/**
|
|
37
|
+
* Client UUID.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
40
|
+
*/
|
|
41
|
+
clientUuid: string;
|
|
42
|
+
/**
|
|
43
|
+
* Approach Date.
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
46
|
+
*/
|
|
47
|
+
approachDate?: Date | null;
|
|
48
|
+
/**
|
|
49
|
+
* Expected Value.
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
52
|
+
*/
|
|
53
|
+
expectedValue?: number | null;
|
|
54
|
+
/**
|
|
55
|
+
* Expected Income.
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
58
|
+
*/
|
|
59
|
+
expectedIncome?: number | null;
|
|
60
|
+
/**
|
|
61
|
+
* Expected closing date
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
64
|
+
*/
|
|
65
|
+
expectedClosingDate?: Date | null;
|
|
66
|
+
/**
|
|
67
|
+
* Probability. Must be a multiple of 10.
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
70
|
+
*/
|
|
71
|
+
probability?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Source.
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
76
|
+
*/
|
|
77
|
+
sourceId?: number;
|
|
78
|
+
/**
|
|
79
|
+
* Category.
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
82
|
+
*/
|
|
83
|
+
categoryId?: number;
|
|
84
|
+
/**
|
|
85
|
+
* Subcategory.
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
88
|
+
*/
|
|
89
|
+
subcategoryId?: number;
|
|
90
|
+
/**
|
|
91
|
+
* Notes.
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
94
|
+
*/
|
|
95
|
+
notes?: string;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Check if a given object implements the OpportunityCreateOpportunitySchema interface.
|
|
99
|
+
*/
|
|
100
|
+
export declare function instanceOfOpportunityCreateOpportunitySchema(value: object): value is OpportunityCreateOpportunitySchema;
|
|
101
|
+
export declare function OpportunityCreateOpportunitySchemaFromJSON(json: any): OpportunityCreateOpportunitySchema;
|
|
102
|
+
export declare function OpportunityCreateOpportunitySchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpportunityCreateOpportunitySchema;
|
|
103
|
+
export declare function OpportunityCreateOpportunitySchemaToJSON(json: any): OpportunityCreateOpportunitySchema;
|
|
104
|
+
export declare function OpportunityCreateOpportunitySchemaToJSONTyped(value?: OpportunityCreateOpportunitySchema | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Equisoft /connect API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: latest
|
|
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.instanceOfOpportunityCreateOpportunitySchema = instanceOfOpportunityCreateOpportunitySchema;
|
|
17
|
+
exports.OpportunityCreateOpportunitySchemaFromJSON = OpportunityCreateOpportunitySchemaFromJSON;
|
|
18
|
+
exports.OpportunityCreateOpportunitySchemaFromJSONTyped = OpportunityCreateOpportunitySchemaFromJSONTyped;
|
|
19
|
+
exports.OpportunityCreateOpportunitySchemaToJSON = OpportunityCreateOpportunitySchemaToJSON;
|
|
20
|
+
exports.OpportunityCreateOpportunitySchemaToJSONTyped = OpportunityCreateOpportunitySchemaToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the OpportunityCreateOpportunitySchema interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfOpportunityCreateOpportunitySchema(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('referenceNumber' in value) || value['referenceNumber'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('stepId' in value) || value['stepId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('clientUuid' in value) || value['clientUuid'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function OpportunityCreateOpportunitySchemaFromJSON(json) {
|
|
36
|
+
return OpportunityCreateOpportunitySchemaFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function OpportunityCreateOpportunitySchemaFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'name': json['name'],
|
|
44
|
+
'referenceNumber': json['referenceNumber'],
|
|
45
|
+
'stepId': json['stepId'],
|
|
46
|
+
'clientUuid': json['clientUuid'],
|
|
47
|
+
'approachDate': json['approachDate'] == null ? undefined : (new Date(json['approachDate'])),
|
|
48
|
+
'expectedValue': json['expectedValue'] == null ? undefined : json['expectedValue'],
|
|
49
|
+
'expectedIncome': json['expectedIncome'] == null ? undefined : json['expectedIncome'],
|
|
50
|
+
'expectedClosingDate': json['expectedClosingDate'] == null ? undefined : (new Date(json['expectedClosingDate'])),
|
|
51
|
+
'probability': json['probability'] == null ? undefined : json['probability'],
|
|
52
|
+
'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
|
|
53
|
+
'categoryId': json['categoryId'] == null ? undefined : json['categoryId'],
|
|
54
|
+
'subcategoryId': json['subcategoryId'] == null ? undefined : json['subcategoryId'],
|
|
55
|
+
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function OpportunityCreateOpportunitySchemaToJSON(json) {
|
|
59
|
+
return OpportunityCreateOpportunitySchemaToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function OpportunityCreateOpportunitySchemaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'name': value['name'],
|
|
67
|
+
'referenceNumber': value['referenceNumber'],
|
|
68
|
+
'stepId': value['stepId'],
|
|
69
|
+
'clientUuid': value['clientUuid'],
|
|
70
|
+
'approachDate': value['approachDate'] == null ? value['approachDate'] : value['approachDate'].toISOString().substring(0, 10),
|
|
71
|
+
'expectedValue': value['expectedValue'],
|
|
72
|
+
'expectedIncome': value['expectedIncome'],
|
|
73
|
+
'expectedClosingDate': value['expectedClosingDate'] == null ? value['expectedClosingDate'] : value['expectedClosingDate'].toISOString().substring(0, 10),
|
|
74
|
+
'probability': value['probability'],
|
|
75
|
+
'sourceId': value['sourceId'],
|
|
76
|
+
'categoryId': value['categoryId'],
|
|
77
|
+
'subcategoryId': value['subcategoryId'],
|
|
78
|
+
'notes': value['notes'],
|
|
79
|
+
};
|
|
80
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -304,6 +304,7 @@ export * from './MovementUserTuple';
|
|
|
304
304
|
export * from './MovementUserTuplePayload';
|
|
305
305
|
export * from './MovementValidationError';
|
|
306
306
|
export * from './MovementValidationErrorResponse';
|
|
307
|
+
export * from './OpportunityCreateOpportunitySchema';
|
|
307
308
|
export * from './OpportunityOpportunity';
|
|
308
309
|
export * from './ParametersCompanyResponse';
|
|
309
310
|
export * from './TasksCreateTaskPayload';
|
package/dist/models/index.js
CHANGED
|
@@ -322,6 +322,7 @@ __exportStar(require("./MovementUserTuple"), exports);
|
|
|
322
322
|
__exportStar(require("./MovementUserTuplePayload"), exports);
|
|
323
323
|
__exportStar(require("./MovementValidationError"), exports);
|
|
324
324
|
__exportStar(require("./MovementValidationErrorResponse"), exports);
|
|
325
|
+
__exportStar(require("./OpportunityCreateOpportunitySchema"), exports);
|
|
325
326
|
__exportStar(require("./OpportunityOpportunity"), exports);
|
|
326
327
|
__exportStar(require("./ParametersCompanyResponse"), exports);
|
|
327
328
|
__exportStar(require("./TasksCreateTaskPayload"), exports);
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
|
|
2
|
+
# OpportunityCreateOpportunitySchema
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`referenceNumber` | string
|
|
11
|
+
`stepId` | number
|
|
12
|
+
`clientUuid` | string
|
|
13
|
+
`approachDate` | Date
|
|
14
|
+
`expectedValue` | number
|
|
15
|
+
`expectedIncome` | number
|
|
16
|
+
`expectedClosingDate` | Date
|
|
17
|
+
`probability` | number
|
|
18
|
+
`sourceId` | number
|
|
19
|
+
`categoryId` | number
|
|
20
|
+
`subcategoryId` | number
|
|
21
|
+
`notes` | string
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import type { OpportunityCreateOpportunitySchema } from '@equisoft/equisoft-connect-sdk-typescript'
|
|
27
|
+
|
|
28
|
+
// TODO: Update the object below with actual values
|
|
29
|
+
const example = {
|
|
30
|
+
"name": null,
|
|
31
|
+
"referenceNumber": null,
|
|
32
|
+
"stepId": null,
|
|
33
|
+
"clientUuid": null,
|
|
34
|
+
"approachDate": null,
|
|
35
|
+
"expectedValue": null,
|
|
36
|
+
"expectedIncome": null,
|
|
37
|
+
"expectedClosingDate": null,
|
|
38
|
+
"probability": null,
|
|
39
|
+
"sourceId": null,
|
|
40
|
+
"categoryId": null,
|
|
41
|
+
"subcategoryId": null,
|
|
42
|
+
"notes": null,
|
|
43
|
+
} satisfies OpportunityCreateOpportunitySchema
|
|
44
|
+
|
|
45
|
+
console.log(example)
|
|
46
|
+
|
|
47
|
+
// Convert the instance to a JSON string
|
|
48
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
49
|
+
console.log(exampleJSON)
|
|
50
|
+
|
|
51
|
+
// Parse the JSON string back to an object
|
|
52
|
+
const exampleParsed = JSON.parse(exampleJSON) as OpportunityCreateOpportunitySchema
|
|
53
|
+
console.log(exampleParsed)
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
57
|
+
|
|
58
|
+
|
package/package.json
CHANGED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Equisoft /connect API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
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
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface OpportunityCreateOpportunitySchema
|
|
20
|
+
*/
|
|
21
|
+
export interface OpportunityCreateOpportunitySchema {
|
|
22
|
+
/**
|
|
23
|
+
* Name.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* Reference number.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
32
|
+
*/
|
|
33
|
+
referenceNumber: string;
|
|
34
|
+
/**
|
|
35
|
+
* Step.
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
38
|
+
*/
|
|
39
|
+
stepId: number;
|
|
40
|
+
/**
|
|
41
|
+
* Client UUID.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
44
|
+
*/
|
|
45
|
+
clientUuid: string;
|
|
46
|
+
/**
|
|
47
|
+
* Approach Date.
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
50
|
+
*/
|
|
51
|
+
approachDate?: Date | null;
|
|
52
|
+
/**
|
|
53
|
+
* Expected Value.
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
56
|
+
*/
|
|
57
|
+
expectedValue?: number | null;
|
|
58
|
+
/**
|
|
59
|
+
* Expected Income.
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
62
|
+
*/
|
|
63
|
+
expectedIncome?: number | null;
|
|
64
|
+
/**
|
|
65
|
+
* Expected closing date
|
|
66
|
+
* @type {Date}
|
|
67
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
68
|
+
*/
|
|
69
|
+
expectedClosingDate?: Date | null;
|
|
70
|
+
/**
|
|
71
|
+
* Probability. Must be a multiple of 10.
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
74
|
+
*/
|
|
75
|
+
probability?: number;
|
|
76
|
+
/**
|
|
77
|
+
* Source.
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
80
|
+
*/
|
|
81
|
+
sourceId?: number;
|
|
82
|
+
/**
|
|
83
|
+
* Category.
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
86
|
+
*/
|
|
87
|
+
categoryId?: number;
|
|
88
|
+
/**
|
|
89
|
+
* Subcategory.
|
|
90
|
+
* @type {number}
|
|
91
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
92
|
+
*/
|
|
93
|
+
subcategoryId?: number;
|
|
94
|
+
/**
|
|
95
|
+
* Notes.
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof OpportunityCreateOpportunitySchema
|
|
98
|
+
*/
|
|
99
|
+
notes?: string;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Check if a given object implements the OpportunityCreateOpportunitySchema interface.
|
|
104
|
+
*/
|
|
105
|
+
export function instanceOfOpportunityCreateOpportunitySchema(value: object): value is OpportunityCreateOpportunitySchema {
|
|
106
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
107
|
+
if (!('referenceNumber' in value) || value['referenceNumber'] === undefined) return false;
|
|
108
|
+
if (!('stepId' in value) || value['stepId'] === undefined) return false;
|
|
109
|
+
if (!('clientUuid' in value) || value['clientUuid'] === undefined) return false;
|
|
110
|
+
return true;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function OpportunityCreateOpportunitySchemaFromJSON(json: any): OpportunityCreateOpportunitySchema {
|
|
114
|
+
return OpportunityCreateOpportunitySchemaFromJSONTyped(json, false);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function OpportunityCreateOpportunitySchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpportunityCreateOpportunitySchema {
|
|
118
|
+
if (json == null) {
|
|
119
|
+
return json;
|
|
120
|
+
}
|
|
121
|
+
return {
|
|
122
|
+
|
|
123
|
+
'name': json['name'],
|
|
124
|
+
'referenceNumber': json['referenceNumber'],
|
|
125
|
+
'stepId': json['stepId'],
|
|
126
|
+
'clientUuid': json['clientUuid'],
|
|
127
|
+
'approachDate': json['approachDate'] == null ? undefined : (new Date(json['approachDate'])),
|
|
128
|
+
'expectedValue': json['expectedValue'] == null ? undefined : json['expectedValue'],
|
|
129
|
+
'expectedIncome': json['expectedIncome'] == null ? undefined : json['expectedIncome'],
|
|
130
|
+
'expectedClosingDate': json['expectedClosingDate'] == null ? undefined : (new Date(json['expectedClosingDate'])),
|
|
131
|
+
'probability': json['probability'] == null ? undefined : json['probability'],
|
|
132
|
+
'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
|
|
133
|
+
'categoryId': json['categoryId'] == null ? undefined : json['categoryId'],
|
|
134
|
+
'subcategoryId': json['subcategoryId'] == null ? undefined : json['subcategoryId'],
|
|
135
|
+
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function OpportunityCreateOpportunitySchemaToJSON(json: any): OpportunityCreateOpportunitySchema {
|
|
140
|
+
return OpportunityCreateOpportunitySchemaToJSONTyped(json, false);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function OpportunityCreateOpportunitySchemaToJSONTyped(value?: OpportunityCreateOpportunitySchema | null, ignoreDiscriminator: boolean = false): any {
|
|
144
|
+
if (value == null) {
|
|
145
|
+
return value;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
return {
|
|
149
|
+
|
|
150
|
+
'name': value['name'],
|
|
151
|
+
'referenceNumber': value['referenceNumber'],
|
|
152
|
+
'stepId': value['stepId'],
|
|
153
|
+
'clientUuid': value['clientUuid'],
|
|
154
|
+
'approachDate': value['approachDate'] == null ? value['approachDate'] : value['approachDate'].toISOString().substring(0,10),
|
|
155
|
+
'expectedValue': value['expectedValue'],
|
|
156
|
+
'expectedIncome': value['expectedIncome'],
|
|
157
|
+
'expectedClosingDate': value['expectedClosingDate'] == null ? value['expectedClosingDate'] : value['expectedClosingDate'].toISOString().substring(0,10),
|
|
158
|
+
'probability': value['probability'],
|
|
159
|
+
'sourceId': value['sourceId'],
|
|
160
|
+
'categoryId': value['categoryId'],
|
|
161
|
+
'subcategoryId': value['subcategoryId'],
|
|
162
|
+
'notes': value['notes'],
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -306,6 +306,7 @@ export * from './MovementUserTuple';
|
|
|
306
306
|
export * from './MovementUserTuplePayload';
|
|
307
307
|
export * from './MovementValidationError';
|
|
308
308
|
export * from './MovementValidationErrorResponse';
|
|
309
|
+
export * from './OpportunityCreateOpportunitySchema';
|
|
309
310
|
export * from './OpportunityOpportunity';
|
|
310
311
|
export * from './ParametersCompanyResponse';
|
|
311
312
|
export * from './TasksCreateTaskPayload';
|