yellowgrid-api-ts 3.2.120-dev.0 → 3.2.121-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +4 -1
- package/README.md +6 -1
- package/api.ts +298 -20
- package/dist/api.d.ts +206 -14
- package/dist/api.js +196 -15
- package/docs/CRMApi.md +120 -0
- package/docs/CrmActivityDto.md +33 -0
- package/docs/CrmNoteEntity.md +39 -0
- package/docs/CrmNoteModel.md +39 -0
- package/docs/NumberPortingApi.md +5 -5
- package/docs/PostCreateCrmNoteRequest.md +20 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -880,6 +880,7 @@ export declare const AuditLogEntityTypeEnum: {
|
|
|
880
880
|
readonly ApiLog: "api_log";
|
|
881
881
|
readonly PopsBatches: "pops_batches";
|
|
882
882
|
readonly PopsCourierPrices: "pops_courier_prices";
|
|
883
|
+
readonly PopsCrmNotes: "pops_crm_notes";
|
|
883
884
|
readonly PopsCreditAccounts: "pops_credit_accounts";
|
|
884
885
|
readonly PopsCreditNotes: "pops_credit_notes";
|
|
885
886
|
readonly PopsCreditNotesItems: "pops_credit_notes_items";
|
|
@@ -1580,6 +1581,39 @@ export interface CreditNoteModel {
|
|
|
1580
1581
|
*/
|
|
1581
1582
|
'items'?: Array<CreditNoteItemModel>;
|
|
1582
1583
|
}
|
|
1584
|
+
/**
|
|
1585
|
+
* CRM Activity
|
|
1586
|
+
*/
|
|
1587
|
+
export interface CrmActivityDto {
|
|
1588
|
+
/**
|
|
1589
|
+
* Activity Type
|
|
1590
|
+
*/
|
|
1591
|
+
'type'?: string;
|
|
1592
|
+
/**
|
|
1593
|
+
* Date Time
|
|
1594
|
+
*/
|
|
1595
|
+
'timeStamp'?: string | null;
|
|
1596
|
+
/**
|
|
1597
|
+
* Activity Title
|
|
1598
|
+
*/
|
|
1599
|
+
'title'?: string;
|
|
1600
|
+
/**
|
|
1601
|
+
* Activity Description
|
|
1602
|
+
*/
|
|
1603
|
+
'description'?: string;
|
|
1604
|
+
/**
|
|
1605
|
+
* Activity URL
|
|
1606
|
+
*/
|
|
1607
|
+
'url'?: string | null;
|
|
1608
|
+
/**
|
|
1609
|
+
* Activity User Name
|
|
1610
|
+
*/
|
|
1611
|
+
'user'?: string | null;
|
|
1612
|
+
/**
|
|
1613
|
+
* Activity Contact Name
|
|
1614
|
+
*/
|
|
1615
|
+
'contact'?: string | null;
|
|
1616
|
+
}
|
|
1583
1617
|
/**
|
|
1584
1618
|
* CRM Contact
|
|
1585
1619
|
*/
|
|
@@ -1613,6 +1647,96 @@ export interface CrmContactDTO {
|
|
|
1613
1647
|
*/
|
|
1614
1648
|
'url'?: string;
|
|
1615
1649
|
}
|
|
1650
|
+
/**
|
|
1651
|
+
* CrmNotesEntity
|
|
1652
|
+
*/
|
|
1653
|
+
export interface CrmNoteEntity {
|
|
1654
|
+
/**
|
|
1655
|
+
* id
|
|
1656
|
+
*/
|
|
1657
|
+
'id'?: number;
|
|
1658
|
+
/**
|
|
1659
|
+
* customerId
|
|
1660
|
+
*/
|
|
1661
|
+
'customerId'?: string;
|
|
1662
|
+
/**
|
|
1663
|
+
* userId
|
|
1664
|
+
*/
|
|
1665
|
+
'userId'?: number;
|
|
1666
|
+
/**
|
|
1667
|
+
* type
|
|
1668
|
+
*/
|
|
1669
|
+
'type'?: string;
|
|
1670
|
+
/**
|
|
1671
|
+
* note
|
|
1672
|
+
*/
|
|
1673
|
+
'note'?: string;
|
|
1674
|
+
/**
|
|
1675
|
+
* timestamp
|
|
1676
|
+
*/
|
|
1677
|
+
'timestamp'?: string;
|
|
1678
|
+
/**
|
|
1679
|
+
* journalTime
|
|
1680
|
+
*/
|
|
1681
|
+
'journalTime'?: string;
|
|
1682
|
+
/**
|
|
1683
|
+
* duration
|
|
1684
|
+
*/
|
|
1685
|
+
'duration'?: string;
|
|
1686
|
+
/**
|
|
1687
|
+
* callType
|
|
1688
|
+
*/
|
|
1689
|
+
'callType'?: string;
|
|
1690
|
+
/**
|
|
1691
|
+
* callId
|
|
1692
|
+
*/
|
|
1693
|
+
'callId'?: number;
|
|
1694
|
+
}
|
|
1695
|
+
/**
|
|
1696
|
+
* CrmNotesEntity
|
|
1697
|
+
*/
|
|
1698
|
+
export interface CrmNoteModel {
|
|
1699
|
+
/**
|
|
1700
|
+
* id
|
|
1701
|
+
*/
|
|
1702
|
+
'id'?: number;
|
|
1703
|
+
/**
|
|
1704
|
+
* customerId
|
|
1705
|
+
*/
|
|
1706
|
+
'customerId'?: string;
|
|
1707
|
+
/**
|
|
1708
|
+
* userId
|
|
1709
|
+
*/
|
|
1710
|
+
'userId'?: number;
|
|
1711
|
+
/**
|
|
1712
|
+
* type
|
|
1713
|
+
*/
|
|
1714
|
+
'type'?: string;
|
|
1715
|
+
/**
|
|
1716
|
+
* note
|
|
1717
|
+
*/
|
|
1718
|
+
'note'?: string;
|
|
1719
|
+
/**
|
|
1720
|
+
* timestamp
|
|
1721
|
+
*/
|
|
1722
|
+
'timestamp'?: string;
|
|
1723
|
+
/**
|
|
1724
|
+
* journalTime
|
|
1725
|
+
*/
|
|
1726
|
+
'journalTime'?: string;
|
|
1727
|
+
/**
|
|
1728
|
+
* duration
|
|
1729
|
+
*/
|
|
1730
|
+
'duration'?: string;
|
|
1731
|
+
/**
|
|
1732
|
+
* callType
|
|
1733
|
+
*/
|
|
1734
|
+
'callType'?: string;
|
|
1735
|
+
/**
|
|
1736
|
+
* callId
|
|
1737
|
+
*/
|
|
1738
|
+
'callId'?: number;
|
|
1739
|
+
}
|
|
1616
1740
|
/**
|
|
1617
1741
|
* SIP Trunk Customer
|
|
1618
1742
|
*/
|
|
@@ -4098,12 +4222,6 @@ export interface PortalLoginModel {
|
|
|
4098
4222
|
*/
|
|
4099
4223
|
'redirect_uri'?: string;
|
|
4100
4224
|
}
|
|
4101
|
-
export interface PostAddAdminNoteRequest {
|
|
4102
|
-
/**
|
|
4103
|
-
* Note
|
|
4104
|
-
*/
|
|
4105
|
-
'note'?: string;
|
|
4106
|
-
}
|
|
4107
4225
|
export interface PostAddOrderNoteRequest {
|
|
4108
4226
|
/**
|
|
4109
4227
|
* Order Note
|
|
@@ -4113,6 +4231,12 @@ export interface PostAddOrderNoteRequest {
|
|
|
4113
4231
|
export interface PostAddWebhook200Response {
|
|
4114
4232
|
'url'?: string;
|
|
4115
4233
|
}
|
|
4234
|
+
export interface PostCreateCrmNoteRequest {
|
|
4235
|
+
/**
|
|
4236
|
+
* Note
|
|
4237
|
+
*/
|
|
4238
|
+
'note'?: string;
|
|
4239
|
+
}
|
|
4116
4240
|
export interface PostGetClientCredentialsRequest {
|
|
4117
4241
|
/**
|
|
4118
4242
|
* OAuth 2.0 scopes
|
|
@@ -8817,45 +8941,113 @@ export type PatchSetPrizePromoStateEnum = typeof PatchSetPrizePromoStateEnum[key
|
|
|
8817
8941
|
* CRMApi - axios parameter creator
|
|
8818
8942
|
*/
|
|
8819
8943
|
export declare const CRMApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
8944
|
+
/**
|
|
8945
|
+
* Get Customer CRM Activities
|
|
8946
|
+
* @param {string} id Xero ID
|
|
8947
|
+
* @param {string} type Activity Type
|
|
8948
|
+
* @param {string} userId Activity Created By
|
|
8949
|
+
* @param {*} [options] Override http request option.
|
|
8950
|
+
* @throws {RequiredError}
|
|
8951
|
+
*/
|
|
8952
|
+
getGetCrmActivities: (id: string, type: string, userId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8820
8953
|
/**
|
|
8821
8954
|
* Search for contacts by phone number
|
|
8822
8955
|
* @param {*} [options] Override http request option.
|
|
8823
8956
|
* @throws {RequiredError}
|
|
8824
8957
|
*/
|
|
8825
8958
|
getSearchByPhone: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8959
|
+
/**
|
|
8960
|
+
* Create CRM Note
|
|
8961
|
+
* @param {string} id Xero ID
|
|
8962
|
+
* @param {PostCreateCrmNoteRequest} [postCreateCrmNoteRequest] CRM Note Request
|
|
8963
|
+
* @param {*} [options] Override http request option.
|
|
8964
|
+
* @throws {RequiredError}
|
|
8965
|
+
*/
|
|
8966
|
+
postCreateCrmNote: (id: string, postCreateCrmNoteRequest?: PostCreateCrmNoteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8826
8967
|
};
|
|
8827
8968
|
/**
|
|
8828
8969
|
* CRMApi - functional programming interface
|
|
8829
8970
|
*/
|
|
8830
8971
|
export declare const CRMApiFp: (configuration?: Configuration) => {
|
|
8972
|
+
/**
|
|
8973
|
+
* Get Customer CRM Activities
|
|
8974
|
+
* @param {string} id Xero ID
|
|
8975
|
+
* @param {string} type Activity Type
|
|
8976
|
+
* @param {string} userId Activity Created By
|
|
8977
|
+
* @param {*} [options] Override http request option.
|
|
8978
|
+
* @throws {RequiredError}
|
|
8979
|
+
*/
|
|
8980
|
+
getGetCrmActivities(id: string, type: string, userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CrmActivityDto>>>;
|
|
8831
8981
|
/**
|
|
8832
8982
|
* Search for contacts by phone number
|
|
8833
8983
|
* @param {*} [options] Override http request option.
|
|
8834
8984
|
* @throws {RequiredError}
|
|
8835
8985
|
*/
|
|
8836
8986
|
getSearchByPhone(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CrmContactDTO>>;
|
|
8987
|
+
/**
|
|
8988
|
+
* Create CRM Note
|
|
8989
|
+
* @param {string} id Xero ID
|
|
8990
|
+
* @param {PostCreateCrmNoteRequest} [postCreateCrmNoteRequest] CRM Note Request
|
|
8991
|
+
* @param {*} [options] Override http request option.
|
|
8992
|
+
* @throws {RequiredError}
|
|
8993
|
+
*/
|
|
8994
|
+
postCreateCrmNote(id: string, postCreateCrmNoteRequest?: PostCreateCrmNoteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CrmActivityDto>>;
|
|
8837
8995
|
};
|
|
8838
8996
|
/**
|
|
8839
8997
|
* CRMApi - factory interface
|
|
8840
8998
|
*/
|
|
8841
8999
|
export declare const CRMApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
9000
|
+
/**
|
|
9001
|
+
* Get Customer CRM Activities
|
|
9002
|
+
* @param {string} id Xero ID
|
|
9003
|
+
* @param {string} type Activity Type
|
|
9004
|
+
* @param {string} userId Activity Created By
|
|
9005
|
+
* @param {*} [options] Override http request option.
|
|
9006
|
+
* @throws {RequiredError}
|
|
9007
|
+
*/
|
|
9008
|
+
getGetCrmActivities(id: string, type: string, userId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<CrmActivityDto>>;
|
|
8842
9009
|
/**
|
|
8843
9010
|
* Search for contacts by phone number
|
|
8844
9011
|
* @param {*} [options] Override http request option.
|
|
8845
9012
|
* @throws {RequiredError}
|
|
8846
9013
|
*/
|
|
8847
9014
|
getSearchByPhone(options?: RawAxiosRequestConfig): AxiosPromise<CrmContactDTO>;
|
|
9015
|
+
/**
|
|
9016
|
+
* Create CRM Note
|
|
9017
|
+
* @param {string} id Xero ID
|
|
9018
|
+
* @param {PostCreateCrmNoteRequest} [postCreateCrmNoteRequest] CRM Note Request
|
|
9019
|
+
* @param {*} [options] Override http request option.
|
|
9020
|
+
* @throws {RequiredError}
|
|
9021
|
+
*/
|
|
9022
|
+
postCreateCrmNote(id: string, postCreateCrmNoteRequest?: PostCreateCrmNoteRequest, options?: RawAxiosRequestConfig): AxiosPromise<CrmActivityDto>;
|
|
8848
9023
|
};
|
|
8849
9024
|
/**
|
|
8850
9025
|
* CRMApi - object-oriented interface
|
|
8851
9026
|
*/
|
|
8852
9027
|
export declare class CRMApi extends BaseAPI {
|
|
9028
|
+
/**
|
|
9029
|
+
* Get Customer CRM Activities
|
|
9030
|
+
* @param {string} id Xero ID
|
|
9031
|
+
* @param {string} type Activity Type
|
|
9032
|
+
* @param {string} userId Activity Created By
|
|
9033
|
+
* @param {*} [options] Override http request option.
|
|
9034
|
+
* @throws {RequiredError}
|
|
9035
|
+
*/
|
|
9036
|
+
getGetCrmActivities(id: string, type: string, userId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CrmActivityDto[], any, {}>>;
|
|
8853
9037
|
/**
|
|
8854
9038
|
* Search for contacts by phone number
|
|
8855
9039
|
* @param {*} [options] Override http request option.
|
|
8856
9040
|
* @throws {RequiredError}
|
|
8857
9041
|
*/
|
|
8858
9042
|
getSearchByPhone(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CrmContactDTO, any, {}>>;
|
|
9043
|
+
/**
|
|
9044
|
+
* Create CRM Note
|
|
9045
|
+
* @param {string} id Xero ID
|
|
9046
|
+
* @param {PostCreateCrmNoteRequest} [postCreateCrmNoteRequest] CRM Note Request
|
|
9047
|
+
* @param {*} [options] Override http request option.
|
|
9048
|
+
* @throws {RequiredError}
|
|
9049
|
+
*/
|
|
9050
|
+
postCreateCrmNote(id: string, postCreateCrmNoteRequest?: PostCreateCrmNoteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CrmActivityDto, any, {}>>;
|
|
8859
9051
|
}
|
|
8860
9052
|
/**
|
|
8861
9053
|
* Class3CXApi - axios parameter creator
|
|
@@ -11400,11 +11592,11 @@ export declare const NumberPortingApiAxiosParamCreator: (configuration?: Configu
|
|
|
11400
11592
|
/**
|
|
11401
11593
|
*
|
|
11402
11594
|
* @param {number} id Number Port ID
|
|
11403
|
-
* @param {
|
|
11595
|
+
* @param {PostCreateCrmNoteRequest} postCreateCrmNoteRequest
|
|
11404
11596
|
* @param {*} [options] Override http request option.
|
|
11405
11597
|
* @throws {RequiredError}
|
|
11406
11598
|
*/
|
|
11407
|
-
postAddAdminNote: (id: number,
|
|
11599
|
+
postAddAdminNote: (id: number, postCreateCrmNoteRequest: PostCreateCrmNoteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11408
11600
|
/**
|
|
11409
11601
|
*
|
|
11410
11602
|
* @param {string | null} [companyName] Company Name
|
|
@@ -11530,11 +11722,11 @@ export declare const NumberPortingApiFp: (configuration?: Configuration) => {
|
|
|
11530
11722
|
/**
|
|
11531
11723
|
*
|
|
11532
11724
|
* @param {number} id Number Port ID
|
|
11533
|
-
* @param {
|
|
11725
|
+
* @param {PostCreateCrmNoteRequest} postCreateCrmNoteRequest
|
|
11534
11726
|
* @param {*} [options] Override http request option.
|
|
11535
11727
|
* @throws {RequiredError}
|
|
11536
11728
|
*/
|
|
11537
|
-
postAddAdminNote(id: number,
|
|
11729
|
+
postAddAdminNote(id: number, postCreateCrmNoteRequest: PostCreateCrmNoteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminNumberPortDTO>>;
|
|
11538
11730
|
/**
|
|
11539
11731
|
*
|
|
11540
11732
|
* @param {string | null} [companyName] Company Name
|
|
@@ -11660,11 +11852,11 @@ export declare const NumberPortingApiFactory: (configuration?: Configuration, ba
|
|
|
11660
11852
|
/**
|
|
11661
11853
|
*
|
|
11662
11854
|
* @param {number} id Number Port ID
|
|
11663
|
-
* @param {
|
|
11855
|
+
* @param {PostCreateCrmNoteRequest} postCreateCrmNoteRequest
|
|
11664
11856
|
* @param {*} [options] Override http request option.
|
|
11665
11857
|
* @throws {RequiredError}
|
|
11666
11858
|
*/
|
|
11667
|
-
postAddAdminNote(id: number,
|
|
11859
|
+
postAddAdminNote(id: number, postCreateCrmNoteRequest: PostCreateCrmNoteRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminNumberPortDTO>;
|
|
11668
11860
|
/**
|
|
11669
11861
|
*
|
|
11670
11862
|
* @param {string | null} [companyName] Company Name
|
|
@@ -11790,11 +11982,11 @@ export declare class NumberPortingApi extends BaseAPI {
|
|
|
11790
11982
|
/**
|
|
11791
11983
|
*
|
|
11792
11984
|
* @param {number} id Number Port ID
|
|
11793
|
-
* @param {
|
|
11985
|
+
* @param {PostCreateCrmNoteRequest} postCreateCrmNoteRequest
|
|
11794
11986
|
* @param {*} [options] Override http request option.
|
|
11795
11987
|
* @throws {RequiredError}
|
|
11796
11988
|
*/
|
|
11797
|
-
postAddAdminNote(id: number,
|
|
11989
|
+
postAddAdminNote(id: number, postCreateCrmNoteRequest: PostCreateCrmNoteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminNumberPortDTO, any, {}>>;
|
|
11798
11990
|
/**
|
|
11799
11991
|
*
|
|
11800
11992
|
* @param {string | null} [companyName] Company Name
|
package/dist/api.js
CHANGED
|
@@ -113,6 +113,7 @@ exports.AuditLogEntityTypeEnum = {
|
|
|
113
113
|
ApiLog: 'api_log',
|
|
114
114
|
PopsBatches: 'pops_batches',
|
|
115
115
|
PopsCourierPrices: 'pops_courier_prices',
|
|
116
|
+
PopsCrmNotes: 'pops_crm_notes',
|
|
116
117
|
PopsCreditAccounts: 'pops_credit_accounts',
|
|
117
118
|
PopsCreditNotes: 'pops_credit_notes',
|
|
118
119
|
PopsCreditNotesItems: 'pops_credit_notes_items',
|
|
@@ -2857,6 +2858,55 @@ exports.PatchSetPrizePromoStateEnum = {
|
|
|
2857
2858
|
var CRMApiAxiosParamCreator = function (configuration) {
|
|
2858
2859
|
var _this = this;
|
|
2859
2860
|
return {
|
|
2861
|
+
/**
|
|
2862
|
+
* Get Customer CRM Activities
|
|
2863
|
+
* @param {string} id Xero ID
|
|
2864
|
+
* @param {string} type Activity Type
|
|
2865
|
+
* @param {string} userId Activity Created By
|
|
2866
|
+
* @param {*} [options] Override http request option.
|
|
2867
|
+
* @throws {RequiredError}
|
|
2868
|
+
*/
|
|
2869
|
+
getGetCrmActivities: function (id_1, type_1, userId_1) {
|
|
2870
|
+
var args_1 = [];
|
|
2871
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
2872
|
+
args_1[_i - 3] = arguments[_i];
|
|
2873
|
+
}
|
|
2874
|
+
return __awaiter(_this, __spreadArray([id_1, type_1, userId_1], args_1, true), void 0, function (id, type, userId, options) {
|
|
2875
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2876
|
+
if (options === void 0) { options = {}; }
|
|
2877
|
+
return __generator(this, function (_a) {
|
|
2878
|
+
// verify required parameter 'id' is not null or undefined
|
|
2879
|
+
(0, common_1.assertParamExists)('getGetCrmActivities', 'id', id);
|
|
2880
|
+
// verify required parameter 'type' is not null or undefined
|
|
2881
|
+
(0, common_1.assertParamExists)('getGetCrmActivities', 'type', type);
|
|
2882
|
+
// verify required parameter 'userId' is not null or undefined
|
|
2883
|
+
(0, common_1.assertParamExists)('getGetCrmActivities', 'userId', userId);
|
|
2884
|
+
localVarPath = "/admin/crm/{id}/activities"
|
|
2885
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
2886
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2887
|
+
if (configuration) {
|
|
2888
|
+
baseOptions = configuration.baseOptions;
|
|
2889
|
+
}
|
|
2890
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
2891
|
+
localVarHeaderParameter = {};
|
|
2892
|
+
localVarQueryParameter = {};
|
|
2893
|
+
if (type !== undefined) {
|
|
2894
|
+
localVarQueryParameter['type'] = type;
|
|
2895
|
+
}
|
|
2896
|
+
if (userId !== undefined) {
|
|
2897
|
+
localVarQueryParameter['userId'] = userId;
|
|
2898
|
+
}
|
|
2899
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2900
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2901
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2902
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2903
|
+
return [2 /*return*/, {
|
|
2904
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2905
|
+
options: localVarRequestOptions,
|
|
2906
|
+
}];
|
|
2907
|
+
});
|
|
2908
|
+
});
|
|
2909
|
+
},
|
|
2860
2910
|
/**
|
|
2861
2911
|
* Search for contacts by phone number
|
|
2862
2912
|
* @param {*} [options] Override http request option.
|
|
@@ -2890,6 +2940,46 @@ var CRMApiAxiosParamCreator = function (configuration) {
|
|
|
2890
2940
|
});
|
|
2891
2941
|
});
|
|
2892
2942
|
},
|
|
2943
|
+
/**
|
|
2944
|
+
* Create CRM Note
|
|
2945
|
+
* @param {string} id Xero ID
|
|
2946
|
+
* @param {PostCreateCrmNoteRequest} [postCreateCrmNoteRequest] CRM Note Request
|
|
2947
|
+
* @param {*} [options] Override http request option.
|
|
2948
|
+
* @throws {RequiredError}
|
|
2949
|
+
*/
|
|
2950
|
+
postCreateCrmNote: function (id_1, postCreateCrmNoteRequest_1) {
|
|
2951
|
+
var args_1 = [];
|
|
2952
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
2953
|
+
args_1[_i - 2] = arguments[_i];
|
|
2954
|
+
}
|
|
2955
|
+
return __awaiter(_this, __spreadArray([id_1, postCreateCrmNoteRequest_1], args_1, true), void 0, function (id, postCreateCrmNoteRequest, options) {
|
|
2956
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2957
|
+
if (options === void 0) { options = {}; }
|
|
2958
|
+
return __generator(this, function (_a) {
|
|
2959
|
+
// verify required parameter 'id' is not null or undefined
|
|
2960
|
+
(0, common_1.assertParamExists)('postCreateCrmNote', 'id', id);
|
|
2961
|
+
localVarPath = "/admin/crm/{id}/activities/note"
|
|
2962
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
2963
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2964
|
+
if (configuration) {
|
|
2965
|
+
baseOptions = configuration.baseOptions;
|
|
2966
|
+
}
|
|
2967
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
2968
|
+
localVarHeaderParameter = {};
|
|
2969
|
+
localVarQueryParameter = {};
|
|
2970
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2971
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2972
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2973
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2974
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2975
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postCreateCrmNoteRequest, localVarRequestOptions, configuration);
|
|
2976
|
+
return [2 /*return*/, {
|
|
2977
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2978
|
+
options: localVarRequestOptions,
|
|
2979
|
+
}];
|
|
2980
|
+
});
|
|
2981
|
+
});
|
|
2982
|
+
},
|
|
2893
2983
|
};
|
|
2894
2984
|
};
|
|
2895
2985
|
exports.CRMApiAxiosParamCreator = CRMApiAxiosParamCreator;
|
|
@@ -2899,6 +2989,30 @@ exports.CRMApiAxiosParamCreator = CRMApiAxiosParamCreator;
|
|
|
2899
2989
|
var CRMApiFp = function (configuration) {
|
|
2900
2990
|
var localVarAxiosParamCreator = (0, exports.CRMApiAxiosParamCreator)(configuration);
|
|
2901
2991
|
return {
|
|
2992
|
+
/**
|
|
2993
|
+
* Get Customer CRM Activities
|
|
2994
|
+
* @param {string} id Xero ID
|
|
2995
|
+
* @param {string} type Activity Type
|
|
2996
|
+
* @param {string} userId Activity Created By
|
|
2997
|
+
* @param {*} [options] Override http request option.
|
|
2998
|
+
* @throws {RequiredError}
|
|
2999
|
+
*/
|
|
3000
|
+
getGetCrmActivities: function (id, type, userId, options) {
|
|
3001
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3002
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3003
|
+
var _a, _b, _c;
|
|
3004
|
+
return __generator(this, function (_d) {
|
|
3005
|
+
switch (_d.label) {
|
|
3006
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetCrmActivities(id, type, userId, options)];
|
|
3007
|
+
case 1:
|
|
3008
|
+
localVarAxiosArgs = _d.sent();
|
|
3009
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3010
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CRMApi.getGetCrmActivities']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3011
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3012
|
+
}
|
|
3013
|
+
});
|
|
3014
|
+
});
|
|
3015
|
+
},
|
|
2902
3016
|
/**
|
|
2903
3017
|
* Search for contacts by phone number
|
|
2904
3018
|
* @param {*} [options] Override http request option.
|
|
@@ -2920,6 +3034,29 @@ var CRMApiFp = function (configuration) {
|
|
|
2920
3034
|
});
|
|
2921
3035
|
});
|
|
2922
3036
|
},
|
|
3037
|
+
/**
|
|
3038
|
+
* Create CRM Note
|
|
3039
|
+
* @param {string} id Xero ID
|
|
3040
|
+
* @param {PostCreateCrmNoteRequest} [postCreateCrmNoteRequest] CRM Note Request
|
|
3041
|
+
* @param {*} [options] Override http request option.
|
|
3042
|
+
* @throws {RequiredError}
|
|
3043
|
+
*/
|
|
3044
|
+
postCreateCrmNote: function (id, postCreateCrmNoteRequest, options) {
|
|
3045
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3046
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3047
|
+
var _a, _b, _c;
|
|
3048
|
+
return __generator(this, function (_d) {
|
|
3049
|
+
switch (_d.label) {
|
|
3050
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateCrmNote(id, postCreateCrmNoteRequest, options)];
|
|
3051
|
+
case 1:
|
|
3052
|
+
localVarAxiosArgs = _d.sent();
|
|
3053
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3054
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CRMApi.postCreateCrmNote']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3055
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3056
|
+
}
|
|
3057
|
+
});
|
|
3058
|
+
});
|
|
3059
|
+
},
|
|
2923
3060
|
};
|
|
2924
3061
|
};
|
|
2925
3062
|
exports.CRMApiFp = CRMApiFp;
|
|
@@ -2929,6 +3066,17 @@ exports.CRMApiFp = CRMApiFp;
|
|
|
2929
3066
|
var CRMApiFactory = function (configuration, basePath, axios) {
|
|
2930
3067
|
var localVarFp = (0, exports.CRMApiFp)(configuration);
|
|
2931
3068
|
return {
|
|
3069
|
+
/**
|
|
3070
|
+
* Get Customer CRM Activities
|
|
3071
|
+
* @param {string} id Xero ID
|
|
3072
|
+
* @param {string} type Activity Type
|
|
3073
|
+
* @param {string} userId Activity Created By
|
|
3074
|
+
* @param {*} [options] Override http request option.
|
|
3075
|
+
* @throws {RequiredError}
|
|
3076
|
+
*/
|
|
3077
|
+
getGetCrmActivities: function (id, type, userId, options) {
|
|
3078
|
+
return localVarFp.getGetCrmActivities(id, type, userId, options).then(function (request) { return request(axios, basePath); });
|
|
3079
|
+
},
|
|
2932
3080
|
/**
|
|
2933
3081
|
* Search for contacts by phone number
|
|
2934
3082
|
* @param {*} [options] Override http request option.
|
|
@@ -2937,6 +3085,16 @@ var CRMApiFactory = function (configuration, basePath, axios) {
|
|
|
2937
3085
|
getSearchByPhone: function (options) {
|
|
2938
3086
|
return localVarFp.getSearchByPhone(options).then(function (request) { return request(axios, basePath); });
|
|
2939
3087
|
},
|
|
3088
|
+
/**
|
|
3089
|
+
* Create CRM Note
|
|
3090
|
+
* @param {string} id Xero ID
|
|
3091
|
+
* @param {PostCreateCrmNoteRequest} [postCreateCrmNoteRequest] CRM Note Request
|
|
3092
|
+
* @param {*} [options] Override http request option.
|
|
3093
|
+
* @throws {RequiredError}
|
|
3094
|
+
*/
|
|
3095
|
+
postCreateCrmNote: function (id, postCreateCrmNoteRequest, options) {
|
|
3096
|
+
return localVarFp.postCreateCrmNote(id, postCreateCrmNoteRequest, options).then(function (request) { return request(axios, basePath); });
|
|
3097
|
+
},
|
|
2940
3098
|
};
|
|
2941
3099
|
};
|
|
2942
3100
|
exports.CRMApiFactory = CRMApiFactory;
|
|
@@ -2948,6 +3106,18 @@ var CRMApi = /** @class */ (function (_super) {
|
|
|
2948
3106
|
function CRMApi() {
|
|
2949
3107
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2950
3108
|
}
|
|
3109
|
+
/**
|
|
3110
|
+
* Get Customer CRM Activities
|
|
3111
|
+
* @param {string} id Xero ID
|
|
3112
|
+
* @param {string} type Activity Type
|
|
3113
|
+
* @param {string} userId Activity Created By
|
|
3114
|
+
* @param {*} [options] Override http request option.
|
|
3115
|
+
* @throws {RequiredError}
|
|
3116
|
+
*/
|
|
3117
|
+
CRMApi.prototype.getGetCrmActivities = function (id, type, userId, options) {
|
|
3118
|
+
var _this = this;
|
|
3119
|
+
return (0, exports.CRMApiFp)(this.configuration).getGetCrmActivities(id, type, userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3120
|
+
};
|
|
2951
3121
|
/**
|
|
2952
3122
|
* Search for contacts by phone number
|
|
2953
3123
|
* @param {*} [options] Override http request option.
|
|
@@ -2957,6 +3127,17 @@ var CRMApi = /** @class */ (function (_super) {
|
|
|
2957
3127
|
var _this = this;
|
|
2958
3128
|
return (0, exports.CRMApiFp)(this.configuration).getSearchByPhone(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2959
3129
|
};
|
|
3130
|
+
/**
|
|
3131
|
+
* Create CRM Note
|
|
3132
|
+
* @param {string} id Xero ID
|
|
3133
|
+
* @param {PostCreateCrmNoteRequest} [postCreateCrmNoteRequest] CRM Note Request
|
|
3134
|
+
* @param {*} [options] Override http request option.
|
|
3135
|
+
* @throws {RequiredError}
|
|
3136
|
+
*/
|
|
3137
|
+
CRMApi.prototype.postCreateCrmNote = function (id, postCreateCrmNoteRequest, options) {
|
|
3138
|
+
var _this = this;
|
|
3139
|
+
return (0, exports.CRMApiFp)(this.configuration).postCreateCrmNote(id, postCreateCrmNoteRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3140
|
+
};
|
|
2960
3141
|
return CRMApi;
|
|
2961
3142
|
}(base_1.BaseAPI));
|
|
2962
3143
|
exports.CRMApi = CRMApi;
|
|
@@ -9381,23 +9562,23 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
|
|
|
9381
9562
|
/**
|
|
9382
9563
|
*
|
|
9383
9564
|
* @param {number} id Number Port ID
|
|
9384
|
-
* @param {
|
|
9565
|
+
* @param {PostCreateCrmNoteRequest} postCreateCrmNoteRequest
|
|
9385
9566
|
* @param {*} [options] Override http request option.
|
|
9386
9567
|
* @throws {RequiredError}
|
|
9387
9568
|
*/
|
|
9388
|
-
postAddAdminNote: function (id_1,
|
|
9569
|
+
postAddAdminNote: function (id_1, postCreateCrmNoteRequest_1) {
|
|
9389
9570
|
var args_1 = [];
|
|
9390
9571
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
9391
9572
|
args_1[_i - 2] = arguments[_i];
|
|
9392
9573
|
}
|
|
9393
|
-
return __awaiter(_this, __spreadArray([id_1,
|
|
9574
|
+
return __awaiter(_this, __spreadArray([id_1, postCreateCrmNoteRequest_1], args_1, true), void 0, function (id, postCreateCrmNoteRequest, options) {
|
|
9394
9575
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9395
9576
|
if (options === void 0) { options = {}; }
|
|
9396
9577
|
return __generator(this, function (_a) {
|
|
9397
9578
|
// verify required parameter 'id' is not null or undefined
|
|
9398
9579
|
(0, common_1.assertParamExists)('postAddAdminNote', 'id', id);
|
|
9399
|
-
// verify required parameter '
|
|
9400
|
-
(0, common_1.assertParamExists)('postAddAdminNote', '
|
|
9580
|
+
// verify required parameter 'postCreateCrmNoteRequest' is not null or undefined
|
|
9581
|
+
(0, common_1.assertParamExists)('postAddAdminNote', 'postCreateCrmNoteRequest', postCreateCrmNoteRequest);
|
|
9401
9582
|
localVarPath = "/admin/sip/numbers/ports/{id}/notes"
|
|
9402
9583
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
9403
9584
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -9412,7 +9593,7 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
|
|
|
9412
9593
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9413
9594
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9414
9595
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9415
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
9596
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postCreateCrmNoteRequest, localVarRequestOptions, configuration);
|
|
9416
9597
|
return [2 /*return*/, {
|
|
9417
9598
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9418
9599
|
options: localVarRequestOptions,
|
|
@@ -9892,17 +10073,17 @@ var NumberPortingApiFp = function (configuration) {
|
|
|
9892
10073
|
/**
|
|
9893
10074
|
*
|
|
9894
10075
|
* @param {number} id Number Port ID
|
|
9895
|
-
* @param {
|
|
10076
|
+
* @param {PostCreateCrmNoteRequest} postCreateCrmNoteRequest
|
|
9896
10077
|
* @param {*} [options] Override http request option.
|
|
9897
10078
|
* @throws {RequiredError}
|
|
9898
10079
|
*/
|
|
9899
|
-
postAddAdminNote: function (id,
|
|
10080
|
+
postAddAdminNote: function (id, postCreateCrmNoteRequest, options) {
|
|
9900
10081
|
return __awaiter(this, void 0, void 0, function () {
|
|
9901
10082
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
9902
10083
|
var _a, _b, _c;
|
|
9903
10084
|
return __generator(this, function (_d) {
|
|
9904
10085
|
switch (_d.label) {
|
|
9905
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAddAdminNote(id,
|
|
10086
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAddAdminNote(id, postCreateCrmNoteRequest, options)];
|
|
9906
10087
|
case 1:
|
|
9907
10088
|
localVarAxiosArgs = _d.sent();
|
|
9908
10089
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -10115,12 +10296,12 @@ var NumberPortingApiFactory = function (configuration, basePath, axios) {
|
|
|
10115
10296
|
/**
|
|
10116
10297
|
*
|
|
10117
10298
|
* @param {number} id Number Port ID
|
|
10118
|
-
* @param {
|
|
10299
|
+
* @param {PostCreateCrmNoteRequest} postCreateCrmNoteRequest
|
|
10119
10300
|
* @param {*} [options] Override http request option.
|
|
10120
10301
|
* @throws {RequiredError}
|
|
10121
10302
|
*/
|
|
10122
|
-
postAddAdminNote: function (id,
|
|
10123
|
-
return localVarFp.postAddAdminNote(id,
|
|
10303
|
+
postAddAdminNote: function (id, postCreateCrmNoteRequest, options) {
|
|
10304
|
+
return localVarFp.postAddAdminNote(id, postCreateCrmNoteRequest, options).then(function (request) { return request(axios, basePath); });
|
|
10124
10305
|
},
|
|
10125
10306
|
/**
|
|
10126
10307
|
*
|
|
@@ -10282,13 +10463,13 @@ var NumberPortingApi = /** @class */ (function (_super) {
|
|
|
10282
10463
|
/**
|
|
10283
10464
|
*
|
|
10284
10465
|
* @param {number} id Number Port ID
|
|
10285
|
-
* @param {
|
|
10466
|
+
* @param {PostCreateCrmNoteRequest} postCreateCrmNoteRequest
|
|
10286
10467
|
* @param {*} [options] Override http request option.
|
|
10287
10468
|
* @throws {RequiredError}
|
|
10288
10469
|
*/
|
|
10289
|
-
NumberPortingApi.prototype.postAddAdminNote = function (id,
|
|
10470
|
+
NumberPortingApi.prototype.postAddAdminNote = function (id, postCreateCrmNoteRequest, options) {
|
|
10290
10471
|
var _this = this;
|
|
10291
|
-
return (0, exports.NumberPortingApiFp)(this.configuration).postAddAdminNote(id,
|
|
10472
|
+
return (0, exports.NumberPortingApiFp)(this.configuration).postAddAdminNote(id, postCreateCrmNoteRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10292
10473
|
};
|
|
10293
10474
|
/**
|
|
10294
10475
|
*
|