yellowgrid-api-ts 3.2.120-dev.0 → 3.2.122-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/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,46 +8941,123 @@ 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 {number} id Account ID
8947
+ * @param {GetGetCrmActivitiesTypeEnum} type Activity Type
8948
+ * @param {number} userId Activity Created By
8949
+ * @param {*} [options] Override http request option.
8950
+ * @throws {RequiredError}
8951
+ */
8952
+ getGetCrmActivities: (id: number, type: GetGetCrmActivitiesTypeEnum, userId: number, 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 {number} id Account ID
8962
+ * @param {PostCreateCrmNoteRequest} [postCreateCrmNoteRequest] CRM Note Request
8963
+ * @param {*} [options] Override http request option.
8964
+ * @throws {RequiredError}
8965
+ */
8966
+ postCreateCrmNote: (id: number, 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 {number} id Account ID
8975
+ * @param {GetGetCrmActivitiesTypeEnum} type Activity Type
8976
+ * @param {number} userId Activity Created By
8977
+ * @param {*} [options] Override http request option.
8978
+ * @throws {RequiredError}
8979
+ */
8980
+ getGetCrmActivities(id: number, type: GetGetCrmActivitiesTypeEnum, userId: number, 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 {number} id Account ID
8990
+ * @param {PostCreateCrmNoteRequest} [postCreateCrmNoteRequest] CRM Note Request
8991
+ * @param {*} [options] Override http request option.
8992
+ * @throws {RequiredError}
8993
+ */
8994
+ postCreateCrmNote(id: number, 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 {number} id Account ID
9003
+ * @param {GetGetCrmActivitiesTypeEnum} type Activity Type
9004
+ * @param {number} userId Activity Created By
9005
+ * @param {*} [options] Override http request option.
9006
+ * @throws {RequiredError}
9007
+ */
9008
+ getGetCrmActivities(id: number, type: GetGetCrmActivitiesTypeEnum, userId: number, 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 {number} id Account ID
9018
+ * @param {PostCreateCrmNoteRequest} [postCreateCrmNoteRequest] CRM Note Request
9019
+ * @param {*} [options] Override http request option.
9020
+ * @throws {RequiredError}
9021
+ */
9022
+ postCreateCrmNote(id: number, 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 {number} id Account ID
9031
+ * @param {GetGetCrmActivitiesTypeEnum} type Activity Type
9032
+ * @param {number} userId Activity Created By
9033
+ * @param {*} [options] Override http request option.
9034
+ * @throws {RequiredError}
9035
+ */
9036
+ getGetCrmActivities(id: number, type: GetGetCrmActivitiesTypeEnum, userId: number, 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 {number} id Account ID
9046
+ * @param {PostCreateCrmNoteRequest} [postCreateCrmNoteRequest] CRM Note Request
9047
+ * @param {*} [options] Override http request option.
9048
+ * @throws {RequiredError}
9049
+ */
9050
+ postCreateCrmNote(id: number, postCreateCrmNoteRequest?: PostCreateCrmNoteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CrmActivityDto, any, {}>>;
8859
9051
  }
9052
+ export declare const GetGetCrmActivitiesTypeEnum: {
9053
+ readonly Alert: "alert";
9054
+ readonly Call: "call";
9055
+ readonly Note: "note";
9056
+ readonly Order: "order";
9057
+ readonly Quote: "quote";
9058
+ readonly TcxOrder: "tcx_order";
9059
+ };
9060
+ export type GetGetCrmActivitiesTypeEnum = typeof GetGetCrmActivitiesTypeEnum[keyof typeof GetGetCrmActivitiesTypeEnum];
8860
9061
  /**
8861
9062
  * Class3CXApi - axios parameter creator
8862
9063
  */
@@ -11400,11 +11601,11 @@ export declare const NumberPortingApiAxiosParamCreator: (configuration?: Configu
11400
11601
  /**
11401
11602
  *
11402
11603
  * @param {number} id Number Port ID
11403
- * @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
11604
+ * @param {PostCreateCrmNoteRequest} postCreateCrmNoteRequest
11404
11605
  * @param {*} [options] Override http request option.
11405
11606
  * @throws {RequiredError}
11406
11607
  */
11407
- postAddAdminNote: (id: number, postAddAdminNoteRequest: PostAddAdminNoteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11608
+ postAddAdminNote: (id: number, postCreateCrmNoteRequest: PostCreateCrmNoteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11408
11609
  /**
11409
11610
  *
11410
11611
  * @param {string | null} [companyName] Company Name
@@ -11530,11 +11731,11 @@ export declare const NumberPortingApiFp: (configuration?: Configuration) => {
11530
11731
  /**
11531
11732
  *
11532
11733
  * @param {number} id Number Port ID
11533
- * @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
11734
+ * @param {PostCreateCrmNoteRequest} postCreateCrmNoteRequest
11534
11735
  * @param {*} [options] Override http request option.
11535
11736
  * @throws {RequiredError}
11536
11737
  */
11537
- postAddAdminNote(id: number, postAddAdminNoteRequest: PostAddAdminNoteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminNumberPortDTO>>;
11738
+ postAddAdminNote(id: number, postCreateCrmNoteRequest: PostCreateCrmNoteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminNumberPortDTO>>;
11538
11739
  /**
11539
11740
  *
11540
11741
  * @param {string | null} [companyName] Company Name
@@ -11660,11 +11861,11 @@ export declare const NumberPortingApiFactory: (configuration?: Configuration, ba
11660
11861
  /**
11661
11862
  *
11662
11863
  * @param {number} id Number Port ID
11663
- * @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
11864
+ * @param {PostCreateCrmNoteRequest} postCreateCrmNoteRequest
11664
11865
  * @param {*} [options] Override http request option.
11665
11866
  * @throws {RequiredError}
11666
11867
  */
11667
- postAddAdminNote(id: number, postAddAdminNoteRequest: PostAddAdminNoteRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminNumberPortDTO>;
11868
+ postAddAdminNote(id: number, postCreateCrmNoteRequest: PostCreateCrmNoteRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminNumberPortDTO>;
11668
11869
  /**
11669
11870
  *
11670
11871
  * @param {string | null} [companyName] Company Name
@@ -11790,11 +11991,11 @@ export declare class NumberPortingApi extends BaseAPI {
11790
11991
  /**
11791
11992
  *
11792
11993
  * @param {number} id Number Port ID
11793
- * @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
11994
+ * @param {PostCreateCrmNoteRequest} postCreateCrmNoteRequest
11794
11995
  * @param {*} [options] Override http request option.
11795
11996
  * @throws {RequiredError}
11796
11997
  */
11797
- postAddAdminNote(id: number, postAddAdminNoteRequest: PostAddAdminNoteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminNumberPortDTO, any, {}>>;
11998
+ postAddAdminNote(id: number, postCreateCrmNoteRequest: PostCreateCrmNoteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminNumberPortDTO, any, {}>>;
11798
11999
  /**
11799
12000
  *
11800
12001
  * @param {string | null} [companyName] Company Name