@equisoft/equisoft-connect-sdk-typescript 13.61.0 → 13.61.1-snapshot.20261026201956
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 +4 -0
- package/README.md +3 -0
- package/dist/apis/OpportunitiesApi.d.ts +35 -0
- package/dist/apis/OpportunitiesApi.js +88 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/OpportunitiesApi.d.ts +35 -0
- package/dist/esm/apis/OpportunitiesApi.js +84 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/MovementClientBaseUsingDistributionListMovement.d.ts +12 -4
- package/dist/esm/models/MovementClientBaseUsingDistributionListMovement.js +10 -3
- package/dist/esm/models/OpportunitiesListOpportunityResponse.d.ts +33 -0
- package/dist/esm/models/OpportunitiesListOpportunityResponse.js +44 -0
- package/dist/esm/models/OpportunityOpportunity.d.ts +2 -2
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/MovementClientBaseUsingDistributionListMovement.d.ts +12 -4
- package/dist/models/MovementClientBaseUsingDistributionListMovement.js +11 -3
- package/dist/models/OpportunitiesListOpportunityResponse.d.ts +33 -0
- package/dist/models/OpportunitiesListOpportunityResponse.js +51 -0
- package/dist/models/OpportunityOpportunity.d.ts +2 -2
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/MovementClientBaseUsingDistributionListMovement.md +1 -1
- package/docs/OpportunitiesApi.md +88 -0
- package/docs/OpportunitiesListOpportunityResponse.md +34 -0
- package/docs/OpportunityOpportunity.md +1 -1
- package/package.json +1 -1
- package/src/apis/OpportunitiesApi.ts +104 -0
- package/src/apis/index.ts +1 -0
- package/src/models/MovementClientBaseUsingDistributionListMovement.ts +15 -12
- package/src/models/OpportunitiesListOpportunityResponse.ts +74 -0
- package/src/models/OpportunityOpportunity.ts +2 -2
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -321,6 +321,8 @@ docs/MovementUserTuple.md
|
|
|
321
321
|
docs/MovementUserTuplePayload.md
|
|
322
322
|
docs/MovementValidationError.md
|
|
323
323
|
docs/MovementValidationErrorResponse.md
|
|
324
|
+
docs/OpportunitiesApi.md
|
|
325
|
+
docs/OpportunitiesListOpportunityResponse.md
|
|
324
326
|
docs/OpportunityCreateOpportunitySchema.md
|
|
325
327
|
docs/OpportunityOpportunity.md
|
|
326
328
|
docs/ParametersCompanyResponse.md
|
|
@@ -364,6 +366,7 @@ src/apis/LegacyFinanceApi.ts
|
|
|
364
366
|
src/apis/LegacyParametersApi.ts
|
|
365
367
|
src/apis/LegacyProvisioningApi.ts
|
|
366
368
|
src/apis/MovementApi.ts
|
|
369
|
+
src/apis/OpportunitiesApi.ts
|
|
367
370
|
src/apis/RemoteAccountApi.ts
|
|
368
371
|
src/apis/SystemParametersApi.ts
|
|
369
372
|
src/apis/TasksApi.ts
|
|
@@ -676,6 +679,7 @@ src/models/MovementUserTuple.ts
|
|
|
676
679
|
src/models/MovementUserTuplePayload.ts
|
|
677
680
|
src/models/MovementValidationError.ts
|
|
678
681
|
src/models/MovementValidationErrorResponse.ts
|
|
682
|
+
src/models/OpportunitiesListOpportunityResponse.ts
|
|
679
683
|
src/models/OpportunityCreateOpportunitySchema.ts
|
|
680
684
|
src/models/OpportunityOpportunity.ts
|
|
681
685
|
src/models/ParametersCompanyResponse.ts
|
package/README.md
CHANGED
|
@@ -184,6 +184,7 @@ All URIs are relative to *http://localhost*
|
|
|
184
184
|
*MovementApi* | [**getExecutedMovementInfo**](docs/MovementApi.md#getexecutedmovementinfo) | **GET** /crm/api/v1/movements/executed/{executedMovementId}/info | Get basic information about an executed movement
|
|
185
185
|
*MovementApi* | [**getMovementStatistic**](docs/MovementApi.md#getmovementstatistic) | **GET** /crm/api/v1/movements/statistic | Get movement statistic
|
|
186
186
|
*MovementApi* | [**listMovements**](docs/MovementApi.md#listmovements) | **GET** /crm/api/v1/movements | List all movements
|
|
187
|
+
*OpportunitiesApi* | [**listOpportunities**](docs/OpportunitiesApi.md#listopportunities) | **GET** /crm/api/v1/opportunities | List user opportunities
|
|
187
188
|
*RemoteAccountApi* | [**getMailAccountAccessRights**](docs/RemoteAccountApi.md#getmailaccountaccessrights) | **GET** /crm/api/v1/mailAccounts/{remoteAccountId}/accessRights | Return the mail account access rights granted to the currently connected user account.
|
|
188
189
|
*SystemParametersApi* | [**getCompanyDetails**](docs/SystemParametersApi.md#getcompanydetails) | **GET** /crm/api/v1/databases/{databaseUuid}/parameters/account/company | Get company information about the enterprise or an alternate company
|
|
189
190
|
*SystemParametersApi* | [**getCompanyLogo**](docs/SystemParametersApi.md#getcompanylogo) | **GET** /crm/api/v1/databases/{databaseUuid}/parameters/account/company/logo | Get company logo
|
|
@@ -512,6 +513,7 @@ All URIs are relative to *http://localhost*
|
|
|
512
513
|
- [MovementUserTuplePayload](docs/MovementUserTuplePayload.md)
|
|
513
514
|
- [MovementValidationError](docs/MovementValidationError.md)
|
|
514
515
|
- [MovementValidationErrorResponse](docs/MovementValidationErrorResponse.md)
|
|
516
|
+
- [OpportunitiesListOpportunityResponse](docs/OpportunitiesListOpportunityResponse.md)
|
|
515
517
|
- [OpportunityCreateOpportunitySchema](docs/OpportunityCreateOpportunitySchema.md)
|
|
516
518
|
- [OpportunityOpportunity](docs/OpportunityOpportunity.md)
|
|
517
519
|
- [ParametersCompanyResponse](docs/ParametersCompanyResponse.md)
|
|
@@ -558,6 +560,7 @@ Authentication schemes defined for the API:
|
|
|
558
560
|
- `crm:insurance:read`: Read access on insurance
|
|
559
561
|
- `crm:investment:read`: Read access on investment
|
|
560
562
|
- `crm:movement`: Read/Write access on movement
|
|
563
|
+
- `crm:opportunity`: Read/Write access on opportunities
|
|
561
564
|
- `crm:remoteAccount`: Read/Write access on mail accounts
|
|
562
565
|
- `crm:task`: Read/Write access on tasks
|
|
563
566
|
- `crm:user`: Read/Write access on users
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { OpportunitiesListOpportunityResponse } from '../models/index';
|
|
14
|
+
export interface ListOpportunitiesRequest {
|
|
15
|
+
clientUuid: string;
|
|
16
|
+
ownerId?: string;
|
|
17
|
+
acceptLanguage?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
export declare class OpportunitiesApi extends runtime.BaseAPI {
|
|
23
|
+
/**
|
|
24
|
+
* Creates request options for listOpportunities without sending the request
|
|
25
|
+
*/
|
|
26
|
+
listOpportunitiesRequestOpts(requestParameters: ListOpportunitiesRequest): Promise<runtime.RequestOpts>;
|
|
27
|
+
/**
|
|
28
|
+
* List user opportunities
|
|
29
|
+
*/
|
|
30
|
+
listOpportunitiesRaw(requestParameters: ListOpportunitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OpportunitiesListOpportunityResponse>>;
|
|
31
|
+
/**
|
|
32
|
+
* List user opportunities
|
|
33
|
+
*/
|
|
34
|
+
listOpportunities(requestParameters: ListOpportunitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OpportunitiesListOpportunityResponse>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.OpportunitiesApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class OpportunitiesApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Creates request options for listOpportunities without sending the request
|
|
34
|
+
*/
|
|
35
|
+
listOpportunitiesRequestOpts(requestParameters) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (requestParameters['clientUuid'] == null) {
|
|
38
|
+
throw new runtime.RequiredError('clientUuid', 'Required parameter "clientUuid" was null or undefined when calling listOpportunities().');
|
|
39
|
+
}
|
|
40
|
+
const queryParameters = {};
|
|
41
|
+
if (requestParameters['ownerId'] != null) {
|
|
42
|
+
queryParameters['ownerId'] = requestParameters['ownerId'];
|
|
43
|
+
}
|
|
44
|
+
if (requestParameters['clientUuid'] != null) {
|
|
45
|
+
queryParameters['clientUuid'] = requestParameters['clientUuid'];
|
|
46
|
+
}
|
|
47
|
+
const headerParameters = {};
|
|
48
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
49
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
50
|
+
}
|
|
51
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
52
|
+
// oauth required
|
|
53
|
+
const token = this.configuration.accessToken;
|
|
54
|
+
const tokenString = yield token("OAuth2", ["crm:opportunity"]);
|
|
55
|
+
if (tokenString) {
|
|
56
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
let urlPath = `/crm/api/v1/opportunities`;
|
|
60
|
+
return {
|
|
61
|
+
path: urlPath,
|
|
62
|
+
method: 'GET',
|
|
63
|
+
headers: headerParameters,
|
|
64
|
+
query: queryParameters,
|
|
65
|
+
};
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* List user opportunities
|
|
70
|
+
*/
|
|
71
|
+
listOpportunitiesRaw(requestParameters, initOverrides) {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
const requestOptions = yield this.listOpportunitiesRequestOpts(requestParameters);
|
|
74
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
75
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OpportunitiesListOpportunityResponseFromJSON)(jsonValue));
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* List user opportunities
|
|
80
|
+
*/
|
|
81
|
+
listOpportunities(requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
const response = yield this.listOpportunitiesRaw(requestParameters, initOverrides);
|
|
84
|
+
return yield response.value();
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.OpportunitiesApi = OpportunitiesApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './LegacyFinanceApi';
|
|
|
13
13
|
export * from './LegacyParametersApi';
|
|
14
14
|
export * from './LegacyProvisioningApi';
|
|
15
15
|
export * from './MovementApi';
|
|
16
|
+
export * from './OpportunitiesApi';
|
|
16
17
|
export * from './RemoteAccountApi';
|
|
17
18
|
export * from './SystemParametersApi';
|
|
18
19
|
export * from './TasksApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -31,6 +31,7 @@ __exportStar(require("./LegacyFinanceApi"), exports);
|
|
|
31
31
|
__exportStar(require("./LegacyParametersApi"), exports);
|
|
32
32
|
__exportStar(require("./LegacyProvisioningApi"), exports);
|
|
33
33
|
__exportStar(require("./MovementApi"), exports);
|
|
34
|
+
__exportStar(require("./OpportunitiesApi"), exports);
|
|
34
35
|
__exportStar(require("./RemoteAccountApi"), exports);
|
|
35
36
|
__exportStar(require("./SystemParametersApi"), exports);
|
|
36
37
|
__exportStar(require("./TasksApi"), exports);
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { OpportunitiesListOpportunityResponse } from '../models/index';
|
|
14
|
+
export interface ListOpportunitiesRequest {
|
|
15
|
+
clientUuid: string;
|
|
16
|
+
ownerId?: string;
|
|
17
|
+
acceptLanguage?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
export declare class OpportunitiesApi extends runtime.BaseAPI {
|
|
23
|
+
/**
|
|
24
|
+
* Creates request options for listOpportunities without sending the request
|
|
25
|
+
*/
|
|
26
|
+
listOpportunitiesRequestOpts(requestParameters: ListOpportunitiesRequest): Promise<runtime.RequestOpts>;
|
|
27
|
+
/**
|
|
28
|
+
* List user opportunities
|
|
29
|
+
*/
|
|
30
|
+
listOpportunitiesRaw(requestParameters: ListOpportunitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OpportunitiesListOpportunityResponse>>;
|
|
31
|
+
/**
|
|
32
|
+
* List user opportunities
|
|
33
|
+
*/
|
|
34
|
+
listOpportunities(requestParameters: ListOpportunitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OpportunitiesListOpportunityResponse>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { OpportunitiesListOpportunityResponseFromJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class OpportunitiesApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Creates request options for listOpportunities without sending the request
|
|
31
|
+
*/
|
|
32
|
+
listOpportunitiesRequestOpts(requestParameters) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters['clientUuid'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('clientUuid', 'Required parameter "clientUuid" was null or undefined when calling listOpportunities().');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
if (requestParameters['ownerId'] != null) {
|
|
39
|
+
queryParameters['ownerId'] = requestParameters['ownerId'];
|
|
40
|
+
}
|
|
41
|
+
if (requestParameters['clientUuid'] != null) {
|
|
42
|
+
queryParameters['clientUuid'] = requestParameters['clientUuid'];
|
|
43
|
+
}
|
|
44
|
+
const headerParameters = {};
|
|
45
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
46
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
47
|
+
}
|
|
48
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
49
|
+
// oauth required
|
|
50
|
+
const token = this.configuration.accessToken;
|
|
51
|
+
const tokenString = yield token("OAuth2", ["crm:opportunity"]);
|
|
52
|
+
if (tokenString) {
|
|
53
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
let urlPath = `/crm/api/v1/opportunities`;
|
|
57
|
+
return {
|
|
58
|
+
path: urlPath,
|
|
59
|
+
method: 'GET',
|
|
60
|
+
headers: headerParameters,
|
|
61
|
+
query: queryParameters,
|
|
62
|
+
};
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* List user opportunities
|
|
67
|
+
*/
|
|
68
|
+
listOpportunitiesRaw(requestParameters, initOverrides) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
const requestOptions = yield this.listOpportunitiesRequestOpts(requestParameters);
|
|
71
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
72
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OpportunitiesListOpportunityResponseFromJSON(jsonValue));
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* List user opportunities
|
|
77
|
+
*/
|
|
78
|
+
listOpportunities(requestParameters, initOverrides) {
|
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
const response = yield this.listOpportunitiesRaw(requestParameters, initOverrides);
|
|
81
|
+
return yield response.value();
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
package/dist/esm/apis/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './LegacyFinanceApi';
|
|
|
13
13
|
export * from './LegacyParametersApi';
|
|
14
14
|
export * from './LegacyProvisioningApi';
|
|
15
15
|
export * from './MovementApi';
|
|
16
|
+
export * from './OpportunitiesApi';
|
|
16
17
|
export * from './RemoteAccountApi';
|
|
17
18
|
export * from './SystemParametersApi';
|
|
18
19
|
export * from './TasksApi';
|
package/dist/esm/apis/index.js
CHANGED
|
@@ -15,6 +15,7 @@ export * from './LegacyFinanceApi';
|
|
|
15
15
|
export * from './LegacyParametersApi';
|
|
16
16
|
export * from './LegacyProvisioningApi';
|
|
17
17
|
export * from './MovementApi';
|
|
18
|
+
export * from './OpportunitiesApi';
|
|
18
19
|
export * from './RemoteAccountApi';
|
|
19
20
|
export * from './SystemParametersApi';
|
|
20
21
|
export * from './TasksApi';
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { MovementMovement } from './MovementMovement';
|
|
13
|
-
import type { MovementTransferOption } from './MovementTransferOption';
|
|
14
13
|
import type { MovementDatabase } from './MovementDatabase';
|
|
15
14
|
import type { MovementDistributionList } from './MovementDistributionList';
|
|
16
15
|
import type { MovementUser } from './MovementUser';
|
|
@@ -105,12 +104,21 @@ export interface MovementClientBaseUsingDistributionListMovement extends Movemen
|
|
|
105
104
|
*/
|
|
106
105
|
destinationUser: MovementUser;
|
|
107
106
|
/**
|
|
108
|
-
*
|
|
109
|
-
* @type {
|
|
107
|
+
* Transfer option.
|
|
108
|
+
* @type {MovementClientBaseUsingDistributionListMovementTransferOptionEnum}
|
|
110
109
|
* @memberof MovementClientBaseUsingDistributionListMovement
|
|
111
110
|
*/
|
|
112
|
-
transferOption:
|
|
111
|
+
transferOption: MovementClientBaseUsingDistributionListMovementTransferOptionEnum;
|
|
113
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* @export
|
|
115
|
+
*/
|
|
116
|
+
export declare const MovementClientBaseUsingDistributionListMovementTransferOptionEnum: {
|
|
117
|
+
readonly COPY: "COPY";
|
|
118
|
+
readonly TRANSFER: "TRANSFER";
|
|
119
|
+
readonly unknown_default_open_api: "11184809";
|
|
120
|
+
};
|
|
121
|
+
export type MovementClientBaseUsingDistributionListMovementTransferOptionEnum = typeof MovementClientBaseUsingDistributionListMovementTransferOptionEnum[keyof typeof MovementClientBaseUsingDistributionListMovementTransferOptionEnum];
|
|
114
122
|
/**
|
|
115
123
|
* Check if a given object implements the MovementClientBaseUsingDistributionListMovement interface.
|
|
116
124
|
*/
|
|
@@ -12,10 +12,17 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { MovementMovementFromJSONTyped, MovementMovementToJSONTyped, } from './MovementMovement';
|
|
15
|
-
import { MovementTransferOptionFromJSON, MovementTransferOptionToJSON, } from './MovementTransferOption';
|
|
16
15
|
import { MovementDatabaseFromJSON, MovementDatabaseToJSON, } from './MovementDatabase';
|
|
17
16
|
import { MovementDistributionListFromJSON, MovementDistributionListToJSON, } from './MovementDistributionList';
|
|
18
17
|
import { MovementUserFromJSON, MovementUserToJSON, } from './MovementUser';
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export const MovementClientBaseUsingDistributionListMovementTransferOptionEnum = {
|
|
22
|
+
COPY: 'COPY',
|
|
23
|
+
TRANSFER: 'TRANSFER',
|
|
24
|
+
unknown_default_open_api: '11184809'
|
|
25
|
+
};
|
|
19
26
|
/**
|
|
20
27
|
* Check if a given object implements the MovementClientBaseUsingDistributionListMovement interface.
|
|
21
28
|
*/
|
|
@@ -39,7 +46,7 @@ export function MovementClientBaseUsingDistributionListMovementFromJSONTyped(jso
|
|
|
39
46
|
if (json == null) {
|
|
40
47
|
return json;
|
|
41
48
|
}
|
|
42
|
-
return Object.assign(Object.assign({}, MovementMovementFromJSONTyped(json, true)), { 'id': json['id'] == null ? undefined : json['id'], 'status': json['status'] == null ? undefined : json['status'], 'availableAction': json['availableAction'] == null ? undefined : json['availableAction'], 'scheduledDate': json['scheduledDate'] == null ? undefined : json['scheduledDate'], 'processedDate': json['processedDate'] == null ? undefined : json['processedDate'], 'addedDate': json['addedDate'] == null ? undefined : json['addedDate'], 'addedBy': json['addedBy'] == null ? undefined : MovementUserFromJSON(json['addedBy']), 'cancelledDate': json['cancelledDate'] == null ? undefined : json['cancelledDate'], 'cancelledBy': json['cancelledBy'] == null ? undefined : MovementUserFromJSON(json['cancelledBy']), 'sourceDatabase': MovementDatabaseFromJSON(json['sourceDatabase']), 'sourceUser': MovementUserFromJSON(json['sourceUser']), 'sourceDistributionList': json['sourceDistributionList'] == null ? undefined : MovementDistributionListFromJSON(json['sourceDistributionList']), 'destinationDatabase': MovementDatabaseFromJSON(json['destinationDatabase']), 'destinationUser': MovementUserFromJSON(json['destinationUser']), 'transferOption':
|
|
49
|
+
return Object.assign(Object.assign({}, MovementMovementFromJSONTyped(json, true)), { 'id': json['id'] == null ? undefined : json['id'], 'status': json['status'] == null ? undefined : json['status'], 'availableAction': json['availableAction'] == null ? undefined : json['availableAction'], 'scheduledDate': json['scheduledDate'] == null ? undefined : json['scheduledDate'], 'processedDate': json['processedDate'] == null ? undefined : json['processedDate'], 'addedDate': json['addedDate'] == null ? undefined : json['addedDate'], 'addedBy': json['addedBy'] == null ? undefined : MovementUserFromJSON(json['addedBy']), 'cancelledDate': json['cancelledDate'] == null ? undefined : json['cancelledDate'], 'cancelledBy': json['cancelledBy'] == null ? undefined : MovementUserFromJSON(json['cancelledBy']), 'sourceDatabase': MovementDatabaseFromJSON(json['sourceDatabase']), 'sourceUser': MovementUserFromJSON(json['sourceUser']), 'sourceDistributionList': json['sourceDistributionList'] == null ? undefined : MovementDistributionListFromJSON(json['sourceDistributionList']), 'destinationDatabase': MovementDatabaseFromJSON(json['destinationDatabase']), 'destinationUser': MovementUserFromJSON(json['destinationUser']), 'transferOption': json['transferOption'] });
|
|
43
50
|
}
|
|
44
51
|
export function MovementClientBaseUsingDistributionListMovementToJSON(json) {
|
|
45
52
|
return MovementClientBaseUsingDistributionListMovementToJSONTyped(json, false);
|
|
@@ -48,5 +55,5 @@ export function MovementClientBaseUsingDistributionListMovementToJSONTyped(value
|
|
|
48
55
|
if (value == null) {
|
|
49
56
|
return value;
|
|
50
57
|
}
|
|
51
|
-
return Object.assign(Object.assign({}, MovementMovementToJSONTyped(value, true)), { 'id': value['id'], 'status': value['status'], 'availableAction': value['availableAction'], 'scheduledDate': value['scheduledDate'], 'processedDate': value['processedDate'], 'addedDate': value['addedDate'], 'addedBy': MovementUserToJSON(value['addedBy']), 'cancelledDate': value['cancelledDate'], 'cancelledBy': MovementUserToJSON(value['cancelledBy']), 'sourceDatabase': MovementDatabaseToJSON(value['sourceDatabase']), 'sourceUser': MovementUserToJSON(value['sourceUser']), 'sourceDistributionList': MovementDistributionListToJSON(value['sourceDistributionList']), 'destinationDatabase': MovementDatabaseToJSON(value['destinationDatabase']), 'destinationUser': MovementUserToJSON(value['destinationUser']), 'transferOption':
|
|
58
|
+
return Object.assign(Object.assign({}, MovementMovementToJSONTyped(value, true)), { 'id': value['id'], 'status': value['status'], 'availableAction': value['availableAction'], 'scheduledDate': value['scheduledDate'], 'processedDate': value['processedDate'], 'addedDate': value['addedDate'], 'addedBy': MovementUserToJSON(value['addedBy']), 'cancelledDate': value['cancelledDate'], 'cancelledBy': MovementUserToJSON(value['cancelledBy']), 'sourceDatabase': MovementDatabaseToJSON(value['sourceDatabase']), 'sourceUser': MovementUserToJSON(value['sourceUser']), 'sourceDistributionList': MovementDistributionListToJSON(value['sourceDistributionList']), 'destinationDatabase': MovementDatabaseToJSON(value['destinationDatabase']), 'destinationUser': MovementUserToJSON(value['destinationUser']), 'transferOption': value['transferOption'] });
|
|
52
59
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
import type { OpportunityOpportunity } from './OpportunityOpportunity';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface OpportunitiesListOpportunityResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface OpportunitiesListOpportunityResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<OpportunityOpportunity>}
|
|
22
|
+
* @memberof OpportunitiesListOpportunityResponse
|
|
23
|
+
*/
|
|
24
|
+
items: Array<OpportunityOpportunity>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the OpportunitiesListOpportunityResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfOpportunitiesListOpportunityResponse(value: object): value is OpportunitiesListOpportunityResponse;
|
|
30
|
+
export declare function OpportunitiesListOpportunityResponseFromJSON(json: any): OpportunitiesListOpportunityResponse;
|
|
31
|
+
export declare function OpportunitiesListOpportunityResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpportunitiesListOpportunityResponse;
|
|
32
|
+
export declare function OpportunitiesListOpportunityResponseToJSON(json: any): OpportunitiesListOpportunityResponse;
|
|
33
|
+
export declare function OpportunitiesListOpportunityResponseToJSONTyped(value?: OpportunitiesListOpportunityResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
import { OpportunityOpportunityFromJSON, OpportunityOpportunityToJSON, } from './OpportunityOpportunity';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the OpportunitiesListOpportunityResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfOpportunitiesListOpportunityResponse(value) {
|
|
19
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function OpportunitiesListOpportunityResponseFromJSON(json) {
|
|
24
|
+
return OpportunitiesListOpportunityResponseFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function OpportunitiesListOpportunityResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'items': (json['items'].map(OpportunityOpportunityFromJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function OpportunitiesListOpportunityResponseToJSON(json) {
|
|
35
|
+
return OpportunitiesListOpportunityResponseToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function OpportunitiesListOpportunityResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'items': (value['items'].map(OpportunityOpportunityToJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -18,10 +18,10 @@ import type { FieldValueValueSummary } from './FieldValueValueSummary';
|
|
|
18
18
|
export interface OpportunityOpportunity {
|
|
19
19
|
/**
|
|
20
20
|
* Unique numerical identifier.
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {number}
|
|
22
22
|
* @memberof OpportunityOpportunity
|
|
23
23
|
*/
|
|
24
|
-
id:
|
|
24
|
+
id: number;
|
|
25
25
|
/**
|
|
26
26
|
* Name.
|
|
27
27
|
* @type {string}
|
|
@@ -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 './OpportunitiesListOpportunityResponse';
|
|
307
308
|
export * from './OpportunityCreateOpportunitySchema';
|
|
308
309
|
export * from './OpportunityOpportunity';
|
|
309
310
|
export * from './ParametersCompanyResponse';
|
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 './OpportunitiesListOpportunityResponse';
|
|
309
310
|
export * from './OpportunityCreateOpportunitySchema';
|
|
310
311
|
export * from './OpportunityOpportunity';
|
|
311
312
|
export * from './ParametersCompanyResponse';
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { MovementMovement } from './MovementMovement';
|
|
13
|
-
import type { MovementTransferOption } from './MovementTransferOption';
|
|
14
13
|
import type { MovementDatabase } from './MovementDatabase';
|
|
15
14
|
import type { MovementDistributionList } from './MovementDistributionList';
|
|
16
15
|
import type { MovementUser } from './MovementUser';
|
|
@@ -105,12 +104,21 @@ export interface MovementClientBaseUsingDistributionListMovement extends Movemen
|
|
|
105
104
|
*/
|
|
106
105
|
destinationUser: MovementUser;
|
|
107
106
|
/**
|
|
108
|
-
*
|
|
109
|
-
* @type {
|
|
107
|
+
* Transfer option.
|
|
108
|
+
* @type {MovementClientBaseUsingDistributionListMovementTransferOptionEnum}
|
|
110
109
|
* @memberof MovementClientBaseUsingDistributionListMovement
|
|
111
110
|
*/
|
|
112
|
-
transferOption:
|
|
111
|
+
transferOption: MovementClientBaseUsingDistributionListMovementTransferOptionEnum;
|
|
113
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* @export
|
|
115
|
+
*/
|
|
116
|
+
export declare const MovementClientBaseUsingDistributionListMovementTransferOptionEnum: {
|
|
117
|
+
readonly COPY: "COPY";
|
|
118
|
+
readonly TRANSFER: "TRANSFER";
|
|
119
|
+
readonly unknown_default_open_api: "11184809";
|
|
120
|
+
};
|
|
121
|
+
export type MovementClientBaseUsingDistributionListMovementTransferOptionEnum = typeof MovementClientBaseUsingDistributionListMovementTransferOptionEnum[keyof typeof MovementClientBaseUsingDistributionListMovementTransferOptionEnum];
|
|
114
122
|
/**
|
|
115
123
|
* Check if a given object implements the MovementClientBaseUsingDistributionListMovement interface.
|
|
116
124
|
*/
|
|
@@ -13,16 +13,24 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MovementClientBaseUsingDistributionListMovementTransferOptionEnum = void 0;
|
|
16
17
|
exports.instanceOfMovementClientBaseUsingDistributionListMovement = instanceOfMovementClientBaseUsingDistributionListMovement;
|
|
17
18
|
exports.MovementClientBaseUsingDistributionListMovementFromJSON = MovementClientBaseUsingDistributionListMovementFromJSON;
|
|
18
19
|
exports.MovementClientBaseUsingDistributionListMovementFromJSONTyped = MovementClientBaseUsingDistributionListMovementFromJSONTyped;
|
|
19
20
|
exports.MovementClientBaseUsingDistributionListMovementToJSON = MovementClientBaseUsingDistributionListMovementToJSON;
|
|
20
21
|
exports.MovementClientBaseUsingDistributionListMovementToJSONTyped = MovementClientBaseUsingDistributionListMovementToJSONTyped;
|
|
21
22
|
const MovementMovement_1 = require("./MovementMovement");
|
|
22
|
-
const MovementTransferOption_1 = require("./MovementTransferOption");
|
|
23
23
|
const MovementDatabase_1 = require("./MovementDatabase");
|
|
24
24
|
const MovementDistributionList_1 = require("./MovementDistributionList");
|
|
25
25
|
const MovementUser_1 = require("./MovementUser");
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
exports.MovementClientBaseUsingDistributionListMovementTransferOptionEnum = {
|
|
30
|
+
COPY: 'COPY',
|
|
31
|
+
TRANSFER: 'TRANSFER',
|
|
32
|
+
unknown_default_open_api: '11184809'
|
|
33
|
+
};
|
|
26
34
|
/**
|
|
27
35
|
* Check if a given object implements the MovementClientBaseUsingDistributionListMovement interface.
|
|
28
36
|
*/
|
|
@@ -46,7 +54,7 @@ function MovementClientBaseUsingDistributionListMovementFromJSONTyped(json, igno
|
|
|
46
54
|
if (json == null) {
|
|
47
55
|
return json;
|
|
48
56
|
}
|
|
49
|
-
return Object.assign(Object.assign({}, (0, MovementMovement_1.MovementMovementFromJSONTyped)(json, true)), { 'id': json['id'] == null ? undefined : json['id'], 'status': json['status'] == null ? undefined : json['status'], 'availableAction': json['availableAction'] == null ? undefined : json['availableAction'], 'scheduledDate': json['scheduledDate'] == null ? undefined : json['scheduledDate'], 'processedDate': json['processedDate'] == null ? undefined : json['processedDate'], 'addedDate': json['addedDate'] == null ? undefined : json['addedDate'], 'addedBy': json['addedBy'] == null ? undefined : (0, MovementUser_1.MovementUserFromJSON)(json['addedBy']), 'cancelledDate': json['cancelledDate'] == null ? undefined : json['cancelledDate'], 'cancelledBy': json['cancelledBy'] == null ? undefined : (0, MovementUser_1.MovementUserFromJSON)(json['cancelledBy']), 'sourceDatabase': (0, MovementDatabase_1.MovementDatabaseFromJSON)(json['sourceDatabase']), 'sourceUser': (0, MovementUser_1.MovementUserFromJSON)(json['sourceUser']), 'sourceDistributionList': json['sourceDistributionList'] == null ? undefined : (0, MovementDistributionList_1.MovementDistributionListFromJSON)(json['sourceDistributionList']), 'destinationDatabase': (0, MovementDatabase_1.MovementDatabaseFromJSON)(json['destinationDatabase']), 'destinationUser': (0, MovementUser_1.MovementUserFromJSON)(json['destinationUser']), 'transferOption':
|
|
57
|
+
return Object.assign(Object.assign({}, (0, MovementMovement_1.MovementMovementFromJSONTyped)(json, true)), { 'id': json['id'] == null ? undefined : json['id'], 'status': json['status'] == null ? undefined : json['status'], 'availableAction': json['availableAction'] == null ? undefined : json['availableAction'], 'scheduledDate': json['scheduledDate'] == null ? undefined : json['scheduledDate'], 'processedDate': json['processedDate'] == null ? undefined : json['processedDate'], 'addedDate': json['addedDate'] == null ? undefined : json['addedDate'], 'addedBy': json['addedBy'] == null ? undefined : (0, MovementUser_1.MovementUserFromJSON)(json['addedBy']), 'cancelledDate': json['cancelledDate'] == null ? undefined : json['cancelledDate'], 'cancelledBy': json['cancelledBy'] == null ? undefined : (0, MovementUser_1.MovementUserFromJSON)(json['cancelledBy']), 'sourceDatabase': (0, MovementDatabase_1.MovementDatabaseFromJSON)(json['sourceDatabase']), 'sourceUser': (0, MovementUser_1.MovementUserFromJSON)(json['sourceUser']), 'sourceDistributionList': json['sourceDistributionList'] == null ? undefined : (0, MovementDistributionList_1.MovementDistributionListFromJSON)(json['sourceDistributionList']), 'destinationDatabase': (0, MovementDatabase_1.MovementDatabaseFromJSON)(json['destinationDatabase']), 'destinationUser': (0, MovementUser_1.MovementUserFromJSON)(json['destinationUser']), 'transferOption': json['transferOption'] });
|
|
50
58
|
}
|
|
51
59
|
function MovementClientBaseUsingDistributionListMovementToJSON(json) {
|
|
52
60
|
return MovementClientBaseUsingDistributionListMovementToJSONTyped(json, false);
|
|
@@ -55,5 +63,5 @@ function MovementClientBaseUsingDistributionListMovementToJSONTyped(value, ignor
|
|
|
55
63
|
if (value == null) {
|
|
56
64
|
return value;
|
|
57
65
|
}
|
|
58
|
-
return Object.assign(Object.assign({}, (0, MovementMovement_1.MovementMovementToJSONTyped)(value, true)), { 'id': value['id'], 'status': value['status'], 'availableAction': value['availableAction'], 'scheduledDate': value['scheduledDate'], 'processedDate': value['processedDate'], 'addedDate': value['addedDate'], 'addedBy': (0, MovementUser_1.MovementUserToJSON)(value['addedBy']), 'cancelledDate': value['cancelledDate'], 'cancelledBy': (0, MovementUser_1.MovementUserToJSON)(value['cancelledBy']), 'sourceDatabase': (0, MovementDatabase_1.MovementDatabaseToJSON)(value['sourceDatabase']), 'sourceUser': (0, MovementUser_1.MovementUserToJSON)(value['sourceUser']), 'sourceDistributionList': (0, MovementDistributionList_1.MovementDistributionListToJSON)(value['sourceDistributionList']), 'destinationDatabase': (0, MovementDatabase_1.MovementDatabaseToJSON)(value['destinationDatabase']), 'destinationUser': (0, MovementUser_1.MovementUserToJSON)(value['destinationUser']), 'transferOption':
|
|
66
|
+
return Object.assign(Object.assign({}, (0, MovementMovement_1.MovementMovementToJSONTyped)(value, true)), { 'id': value['id'], 'status': value['status'], 'availableAction': value['availableAction'], 'scheduledDate': value['scheduledDate'], 'processedDate': value['processedDate'], 'addedDate': value['addedDate'], 'addedBy': (0, MovementUser_1.MovementUserToJSON)(value['addedBy']), 'cancelledDate': value['cancelledDate'], 'cancelledBy': (0, MovementUser_1.MovementUserToJSON)(value['cancelledBy']), 'sourceDatabase': (0, MovementDatabase_1.MovementDatabaseToJSON)(value['sourceDatabase']), 'sourceUser': (0, MovementUser_1.MovementUserToJSON)(value['sourceUser']), 'sourceDistributionList': (0, MovementDistributionList_1.MovementDistributionListToJSON)(value['sourceDistributionList']), 'destinationDatabase': (0, MovementDatabase_1.MovementDatabaseToJSON)(value['destinationDatabase']), 'destinationUser': (0, MovementUser_1.MovementUserToJSON)(value['destinationUser']), 'transferOption': value['transferOption'] });
|
|
59
67
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
import type { OpportunityOpportunity } from './OpportunityOpportunity';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface OpportunitiesListOpportunityResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface OpportunitiesListOpportunityResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<OpportunityOpportunity>}
|
|
22
|
+
* @memberof OpportunitiesListOpportunityResponse
|
|
23
|
+
*/
|
|
24
|
+
items: Array<OpportunityOpportunity>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the OpportunitiesListOpportunityResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfOpportunitiesListOpportunityResponse(value: object): value is OpportunitiesListOpportunityResponse;
|
|
30
|
+
export declare function OpportunitiesListOpportunityResponseFromJSON(json: any): OpportunitiesListOpportunityResponse;
|
|
31
|
+
export declare function OpportunitiesListOpportunityResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpportunitiesListOpportunityResponse;
|
|
32
|
+
export declare function OpportunitiesListOpportunityResponseToJSON(json: any): OpportunitiesListOpportunityResponse;
|
|
33
|
+
export declare function OpportunitiesListOpportunityResponseToJSONTyped(value?: OpportunitiesListOpportunityResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfOpportunitiesListOpportunityResponse = instanceOfOpportunitiesListOpportunityResponse;
|
|
17
|
+
exports.OpportunitiesListOpportunityResponseFromJSON = OpportunitiesListOpportunityResponseFromJSON;
|
|
18
|
+
exports.OpportunitiesListOpportunityResponseFromJSONTyped = OpportunitiesListOpportunityResponseFromJSONTyped;
|
|
19
|
+
exports.OpportunitiesListOpportunityResponseToJSON = OpportunitiesListOpportunityResponseToJSON;
|
|
20
|
+
exports.OpportunitiesListOpportunityResponseToJSONTyped = OpportunitiesListOpportunityResponseToJSONTyped;
|
|
21
|
+
const OpportunityOpportunity_1 = require("./OpportunityOpportunity");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the OpportunitiesListOpportunityResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfOpportunitiesListOpportunityResponse(value) {
|
|
26
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function OpportunitiesListOpportunityResponseFromJSON(json) {
|
|
31
|
+
return OpportunitiesListOpportunityResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function OpportunitiesListOpportunityResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'items': (json['items'].map(OpportunityOpportunity_1.OpportunityOpportunityFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function OpportunitiesListOpportunityResponseToJSON(json) {
|
|
42
|
+
return OpportunitiesListOpportunityResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function OpportunitiesListOpportunityResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'items': (value['items'].map(OpportunityOpportunity_1.OpportunityOpportunityToJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -18,10 +18,10 @@ import type { FieldValueValueSummary } from './FieldValueValueSummary';
|
|
|
18
18
|
export interface OpportunityOpportunity {
|
|
19
19
|
/**
|
|
20
20
|
* Unique numerical identifier.
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {number}
|
|
22
22
|
* @memberof OpportunityOpportunity
|
|
23
23
|
*/
|
|
24
|
-
id:
|
|
24
|
+
id: number;
|
|
25
25
|
/**
|
|
26
26
|
* Name.
|
|
27
27
|
* @type {string}
|
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 './OpportunitiesListOpportunityResponse';
|
|
307
308
|
export * from './OpportunityCreateOpportunitySchema';
|
|
308
309
|
export * from './OpportunityOpportunity';
|
|
309
310
|
export * from './ParametersCompanyResponse';
|
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("./OpportunitiesListOpportunityResponse"), exports);
|
|
325
326
|
__exportStar(require("./OpportunityCreateOpportunitySchema"), exports);
|
|
326
327
|
__exportStar(require("./OpportunityOpportunity"), exports);
|
|
327
328
|
__exportStar(require("./ParametersCompanyResponse"), exports);
|
|
@@ -20,7 +20,7 @@ Name | Type
|
|
|
20
20
|
`sourceDistributionList` | [MovementDistributionList](MovementDistributionList.md)
|
|
21
21
|
`destinationDatabase` | [MovementDatabase](MovementDatabase.md)
|
|
22
22
|
`destinationUser` | [MovementUser](MovementUser.md)
|
|
23
|
-
`transferOption` |
|
|
23
|
+
`transferOption` | string
|
|
24
24
|
|
|
25
25
|
## Example
|
|
26
26
|
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# OpportunitiesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**listOpportunities**](OpportunitiesApi.md#listopportunities) | **GET** /crm/api/v1/opportunities | List user opportunities |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## listOpportunities
|
|
12
|
+
|
|
13
|
+
> OpportunitiesListOpportunityResponse listOpportunities(clientUuid, ownerId, acceptLanguage)
|
|
14
|
+
|
|
15
|
+
List user opportunities
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import {
|
|
21
|
+
Configuration,
|
|
22
|
+
OpportunitiesApi,
|
|
23
|
+
} from '@equisoft/equisoft-connect-sdk-typescript';
|
|
24
|
+
import type { ListOpportunitiesRequest } from '@equisoft/equisoft-connect-sdk-typescript';
|
|
25
|
+
|
|
26
|
+
async function example() {
|
|
27
|
+
console.log("🚀 Testing @equisoft/equisoft-connect-sdk-typescript SDK...");
|
|
28
|
+
const config = new Configuration({
|
|
29
|
+
// To configure OAuth2 access token for authorization: OAuth2 accessCode
|
|
30
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
31
|
+
});
|
|
32
|
+
const api = new OpportunitiesApi(config);
|
|
33
|
+
|
|
34
|
+
const body = {
|
|
35
|
+
// string | Client unique identifier.
|
|
36
|
+
clientUuid: clientUuid_example,
|
|
37
|
+
// string | Owner ID filter param. (optional)
|
|
38
|
+
ownerId: ownerId_example,
|
|
39
|
+
// string | Specify preferred language for returned data. Format is https://tools.ietf.org/html/rfc3282. (optional)
|
|
40
|
+
acceptLanguage: acceptLanguage_example,
|
|
41
|
+
} satisfies ListOpportunitiesRequest;
|
|
42
|
+
|
|
43
|
+
try {
|
|
44
|
+
const data = await api.listOpportunities(body);
|
|
45
|
+
console.log(data);
|
|
46
|
+
} catch (error) {
|
|
47
|
+
console.error(error);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Run the test
|
|
52
|
+
example().catch(console.error);
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Parameters
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
| Name | Type | Description | Notes |
|
|
59
|
+
|------------- | ------------- | ------------- | -------------|
|
|
60
|
+
| **clientUuid** | `string` | Client unique identifier. | [Defaults to `undefined`] |
|
|
61
|
+
| **ownerId** | `string` | Owner ID filter param. | [Optional] [Defaults to `undefined`] |
|
|
62
|
+
| **acceptLanguage** | `string` | Specify preferred language for returned data. Format is https://tools.ietf.org/html/rfc3282. | [Optional] [Defaults to `undefined`] |
|
|
63
|
+
|
|
64
|
+
### Return type
|
|
65
|
+
|
|
66
|
+
[**OpportunitiesListOpportunityResponse**](OpportunitiesListOpportunityResponse.md)
|
|
67
|
+
|
|
68
|
+
### Authorization
|
|
69
|
+
|
|
70
|
+
[OAuth2 accessCode](../README.md#OAuth2-accessCode)
|
|
71
|
+
|
|
72
|
+
### HTTP request headers
|
|
73
|
+
|
|
74
|
+
- **Content-Type**: Not defined
|
|
75
|
+
- **Accept**: `application/json`
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
### HTTP response details
|
|
79
|
+
| Status code | Description | Response headers |
|
|
80
|
+
|-------------|-------------|------------------|
|
|
81
|
+
| **200** | Ok | - |
|
|
82
|
+
| **400** | Bad Request | - |
|
|
83
|
+
| **401** | Unauthorized | - |
|
|
84
|
+
| **500** | Internal Server Error | - |
|
|
85
|
+
| **404** | Not Found | - |
|
|
86
|
+
|
|
87
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
88
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# OpportunitiesListOpportunityResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`items` | [Array<OpportunityOpportunity>](OpportunityOpportunity.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { OpportunitiesListOpportunityResponse } from '@equisoft/equisoft-connect-sdk-typescript'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"items": null,
|
|
19
|
+
} satisfies OpportunitiesListOpportunityResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as OpportunitiesListOpportunityResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
package/package.json
CHANGED
|
@@ -0,0 +1,104 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
ErrorResponse,
|
|
19
|
+
OpportunitiesListOpportunityResponse,
|
|
20
|
+
} from '../models/index';
|
|
21
|
+
import {
|
|
22
|
+
ErrorResponseFromJSON,
|
|
23
|
+
ErrorResponseToJSON,
|
|
24
|
+
OpportunitiesListOpportunityResponseFromJSON,
|
|
25
|
+
OpportunitiesListOpportunityResponseToJSON,
|
|
26
|
+
} from '../models/index';
|
|
27
|
+
|
|
28
|
+
export interface ListOpportunitiesRequest {
|
|
29
|
+
clientUuid: string;
|
|
30
|
+
ownerId?: string;
|
|
31
|
+
acceptLanguage?: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
export class OpportunitiesApi extends runtime.BaseAPI {
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Creates request options for listOpportunities without sending the request
|
|
41
|
+
*/
|
|
42
|
+
async listOpportunitiesRequestOpts(requestParameters: ListOpportunitiesRequest): Promise<runtime.RequestOpts> {
|
|
43
|
+
if (requestParameters['clientUuid'] == null) {
|
|
44
|
+
throw new runtime.RequiredError(
|
|
45
|
+
'clientUuid',
|
|
46
|
+
'Required parameter "clientUuid" was null or undefined when calling listOpportunities().'
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const queryParameters: any = {};
|
|
51
|
+
|
|
52
|
+
if (requestParameters['ownerId'] != null) {
|
|
53
|
+
queryParameters['ownerId'] = requestParameters['ownerId'];
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
if (requestParameters['clientUuid'] != null) {
|
|
57
|
+
queryParameters['clientUuid'] = requestParameters['clientUuid'];
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
61
|
+
|
|
62
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
63
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
67
|
+
// oauth required
|
|
68
|
+
const token = this.configuration.accessToken;
|
|
69
|
+
const tokenString = await token("OAuth2", ["crm:opportunity"]);
|
|
70
|
+
if (tokenString) {
|
|
71
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
let urlPath = `/crm/api/v1/opportunities`;
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
path: urlPath,
|
|
80
|
+
method: 'GET',
|
|
81
|
+
headers: headerParameters,
|
|
82
|
+
query: queryParameters,
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* List user opportunities
|
|
88
|
+
*/
|
|
89
|
+
async listOpportunitiesRaw(requestParameters: ListOpportunitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OpportunitiesListOpportunityResponse>> {
|
|
90
|
+
const requestOptions = await this.listOpportunitiesRequestOpts(requestParameters);
|
|
91
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
92
|
+
|
|
93
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OpportunitiesListOpportunityResponseFromJSON(jsonValue));
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* List user opportunities
|
|
98
|
+
*/
|
|
99
|
+
async listOpportunities(requestParameters: ListOpportunitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OpportunitiesListOpportunityResponse> {
|
|
100
|
+
const response = await this.listOpportunitiesRaw(requestParameters, initOverrides);
|
|
101
|
+
return await response.value();
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -15,6 +15,7 @@ export * from './LegacyFinanceApi';
|
|
|
15
15
|
export * from './LegacyParametersApi';
|
|
16
16
|
export * from './LegacyProvisioningApi';
|
|
17
17
|
export * from './MovementApi';
|
|
18
|
+
export * from './OpportunitiesApi';
|
|
18
19
|
export * from './RemoteAccountApi';
|
|
19
20
|
export * from './SystemParametersApi';
|
|
20
21
|
export * from './TasksApi';
|
|
@@ -20,13 +20,6 @@ import {
|
|
|
20
20
|
MovementMovementToJSON,
|
|
21
21
|
MovementMovementToJSONTyped,
|
|
22
22
|
} from './MovementMovement';
|
|
23
|
-
import type { MovementTransferOption } from './MovementTransferOption';
|
|
24
|
-
import {
|
|
25
|
-
MovementTransferOptionFromJSON,
|
|
26
|
-
MovementTransferOptionFromJSONTyped,
|
|
27
|
-
MovementTransferOptionToJSON,
|
|
28
|
-
MovementTransferOptionToJSONTyped,
|
|
29
|
-
} from './MovementTransferOption';
|
|
30
23
|
import type { MovementMovementType } from './MovementMovementType';
|
|
31
24
|
import {
|
|
32
25
|
MovementMovementTypeFromJSON,
|
|
@@ -147,14 +140,24 @@ export interface MovementClientBaseUsingDistributionListMovement extends Movemen
|
|
|
147
140
|
*/
|
|
148
141
|
destinationUser: MovementUser;
|
|
149
142
|
/**
|
|
150
|
-
*
|
|
151
|
-
* @type {
|
|
143
|
+
* Transfer option.
|
|
144
|
+
* @type {MovementClientBaseUsingDistributionListMovementTransferOptionEnum}
|
|
152
145
|
* @memberof MovementClientBaseUsingDistributionListMovement
|
|
153
146
|
*/
|
|
154
|
-
transferOption:
|
|
147
|
+
transferOption: MovementClientBaseUsingDistributionListMovementTransferOptionEnum;
|
|
155
148
|
}
|
|
156
149
|
|
|
157
150
|
|
|
151
|
+
/**
|
|
152
|
+
* @export
|
|
153
|
+
*/
|
|
154
|
+
export const MovementClientBaseUsingDistributionListMovementTransferOptionEnum = {
|
|
155
|
+
COPY: 'COPY',
|
|
156
|
+
TRANSFER: 'TRANSFER',
|
|
157
|
+
unknown_default_open_api: '11184809'
|
|
158
|
+
} as const;
|
|
159
|
+
export type MovementClientBaseUsingDistributionListMovementTransferOptionEnum = typeof MovementClientBaseUsingDistributionListMovementTransferOptionEnum[keyof typeof MovementClientBaseUsingDistributionListMovementTransferOptionEnum];
|
|
160
|
+
|
|
158
161
|
|
|
159
162
|
/**
|
|
160
163
|
* Check if a given object implements the MovementClientBaseUsingDistributionListMovement interface.
|
|
@@ -192,7 +195,7 @@ export function MovementClientBaseUsingDistributionListMovementFromJSONTyped(jso
|
|
|
192
195
|
'sourceDistributionList': json['sourceDistributionList'] == null ? undefined : MovementDistributionListFromJSON(json['sourceDistributionList']),
|
|
193
196
|
'destinationDatabase': MovementDatabaseFromJSON(json['destinationDatabase']),
|
|
194
197
|
'destinationUser': MovementUserFromJSON(json['destinationUser']),
|
|
195
|
-
'transferOption':
|
|
198
|
+
'transferOption': json['transferOption'],
|
|
196
199
|
};
|
|
197
200
|
}
|
|
198
201
|
|
|
@@ -221,7 +224,7 @@ export function MovementClientBaseUsingDistributionListMovementToJSONTyped(value
|
|
|
221
224
|
'sourceDistributionList': MovementDistributionListToJSON(value['sourceDistributionList']),
|
|
222
225
|
'destinationDatabase': MovementDatabaseToJSON(value['destinationDatabase']),
|
|
223
226
|
'destinationUser': MovementUserToJSON(value['destinationUser']),
|
|
224
|
-
'transferOption':
|
|
227
|
+
'transferOption': value['transferOption'],
|
|
225
228
|
};
|
|
226
229
|
}
|
|
227
230
|
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
import type { OpportunityOpportunity } from './OpportunityOpportunity';
|
|
17
|
+
import {
|
|
18
|
+
OpportunityOpportunityFromJSON,
|
|
19
|
+
OpportunityOpportunityFromJSONTyped,
|
|
20
|
+
OpportunityOpportunityToJSON,
|
|
21
|
+
OpportunityOpportunityToJSONTyped,
|
|
22
|
+
} from './OpportunityOpportunity';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface OpportunitiesListOpportunityResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface OpportunitiesListOpportunityResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<OpportunityOpportunity>}
|
|
33
|
+
* @memberof OpportunitiesListOpportunityResponse
|
|
34
|
+
*/
|
|
35
|
+
items: Array<OpportunityOpportunity>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the OpportunitiesListOpportunityResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfOpportunitiesListOpportunityResponse(value: object): value is OpportunitiesListOpportunityResponse {
|
|
42
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function OpportunitiesListOpportunityResponseFromJSON(json: any): OpportunitiesListOpportunityResponse {
|
|
47
|
+
return OpportunitiesListOpportunityResponseFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function OpportunitiesListOpportunityResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpportunitiesListOpportunityResponse {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'items': ((json['items'] as Array<any>).map(OpportunityOpportunityFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function OpportunitiesListOpportunityResponseToJSON(json: any): OpportunitiesListOpportunityResponse {
|
|
61
|
+
return OpportunitiesListOpportunityResponseToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function OpportunitiesListOpportunityResponseToJSONTyped(value?: OpportunitiesListOpportunityResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'items': ((value['items'] as Array<any>).map(OpportunityOpportunityToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
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 './OpportunitiesListOpportunityResponse';
|
|
309
310
|
export * from './OpportunityCreateOpportunitySchema';
|
|
310
311
|
export * from './OpportunityOpportunity';
|
|
311
312
|
export * from './ParametersCompanyResponse';
|