tremendous 4.1.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +13 -0
- package/dist/api.d.ts +214 -12
- package/dist/api.js +122 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.2.0](https://github.com/tremendous-rewards/tremendous-node/compare/tremendous-v4.1.0...tremendous-v4.2.0) (2026-02-07)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add create field endpoint (POST /fields) ([0817971](https://github.com/tremendous-rewards/tremendous-node/commit/0817971273bed122ef728906556c429b3d708dee))
|
|
9
|
+
* regenerate SDK ([#250](https://github.com/tremendous-rewards/tremendous-node/issues/250)) ([0817971](https://github.com/tremendous-rewards/tremendous-node/commit/0817971273bed122ef728906556c429b3d708dee))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* type field data as structured object instead of untyped record ([0817971](https://github.com/tremendous-rewards/tremendous-node/commit/0817971273bed122ef728906556c429b3d708dee))
|
|
15
|
+
|
|
3
16
|
## [4.1.0](https://github.com/tremendous-rewards/tremendous-node/compare/tremendous-v4.0.0...tremendous-v4.1.0) (2026-01-28)
|
|
4
17
|
|
|
5
18
|
|
package/dist/api.d.ts
CHANGED
|
@@ -683,6 +683,132 @@ export interface CreateConnectedOrganizationRequest {
|
|
|
683
683
|
*/
|
|
684
684
|
'client_id': string;
|
|
685
685
|
}
|
|
686
|
+
/**
|
|
687
|
+
*
|
|
688
|
+
* @export
|
|
689
|
+
* @interface CreateField
|
|
690
|
+
*/
|
|
691
|
+
export interface CreateField {
|
|
692
|
+
/**
|
|
693
|
+
* A human-readable name for the field. Can contain letters, numbers, spaces, and underscores. The field\'s `label` (a reference name used in API requests) will be automatically derived from this value.
|
|
694
|
+
* @type {string}
|
|
695
|
+
* @memberof CreateField
|
|
696
|
+
*/
|
|
697
|
+
'display_name': string;
|
|
698
|
+
/**
|
|
699
|
+
* Type of the values of the field <table> <thead> <tr> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>Checkbox</code></td> <td>A boolean value (true/false)</td> </tr> <tr> <td><code>Currency</code></td> <td>A monetary value</td> </tr> <tr> <td><code>Date</code></td> <td>A date value</td> </tr> <tr> <td><code>Dropdown</code></td> <td>A single selection from predefined options (see <code>data.options</code>)</td> </tr> <tr> <td><code>Email</code></td> <td>An email address</td> </tr> <tr> <td><code>List</code></td> <td>Multiple selections from predefined options (see <code>data.options</code>)</td> </tr> <tr> <td><code>Number</code></td> <td>A numeric value</td> </tr> <tr> <td><code>Phone</code></td> <td>A phone number</td> </tr> <tr> <td><code>Text</code></td> <td>A single-line text value</td> </tr> <tr> <td><code>TextArea</code></td> <td>A multi-line text value</td> </tr> </tbody> </table>
|
|
700
|
+
* @type {string}
|
|
701
|
+
* @memberof CreateField
|
|
702
|
+
*/
|
|
703
|
+
'data_type': CreateFieldDataTypeEnum;
|
|
704
|
+
/**
|
|
705
|
+
*
|
|
706
|
+
* @type {CreateFieldRequestData}
|
|
707
|
+
* @memberof CreateField
|
|
708
|
+
*/
|
|
709
|
+
'data'?: CreateFieldRequestData;
|
|
710
|
+
/**
|
|
711
|
+
* Is this field required (true) or optional (false). Defaults to false.
|
|
712
|
+
* @type {boolean}
|
|
713
|
+
* @memberof CreateField
|
|
714
|
+
*/
|
|
715
|
+
'required'?: boolean;
|
|
716
|
+
/**
|
|
717
|
+
* A description of the field\'s purpose
|
|
718
|
+
* @type {string}
|
|
719
|
+
* @memberof CreateField
|
|
720
|
+
*/
|
|
721
|
+
'description'?: string;
|
|
722
|
+
}
|
|
723
|
+
export declare const CreateFieldDataTypeEnum: {
|
|
724
|
+
readonly Checkbox: "Checkbox";
|
|
725
|
+
readonly Currency: "Currency";
|
|
726
|
+
readonly Date: "Date";
|
|
727
|
+
readonly Dropdown: "Dropdown";
|
|
728
|
+
readonly Email: "Email";
|
|
729
|
+
readonly List: "List";
|
|
730
|
+
readonly Number: "Number";
|
|
731
|
+
readonly Phone: "Phone";
|
|
732
|
+
readonly Text: "Text";
|
|
733
|
+
readonly TextArea: "TextArea";
|
|
734
|
+
};
|
|
735
|
+
export type CreateFieldDataTypeEnum = typeof CreateFieldDataTypeEnum[keyof typeof CreateFieldDataTypeEnum];
|
|
736
|
+
/**
|
|
737
|
+
*
|
|
738
|
+
* @export
|
|
739
|
+
* @interface CreateField200Response
|
|
740
|
+
*/
|
|
741
|
+
export interface CreateField200Response {
|
|
742
|
+
/**
|
|
743
|
+
*
|
|
744
|
+
* @type {ListFields200ResponseFieldsInner}
|
|
745
|
+
* @memberof CreateField200Response
|
|
746
|
+
*/
|
|
747
|
+
'field': ListFields200ResponseFieldsInner;
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
*
|
|
751
|
+
* @export
|
|
752
|
+
* @interface CreateFieldRequest
|
|
753
|
+
*/
|
|
754
|
+
export interface CreateFieldRequest {
|
|
755
|
+
/**
|
|
756
|
+
* A human-readable name for the field. Can contain letters, numbers, spaces, and underscores. The field\'s `label` (a reference name used in API requests) will be automatically derived from this value.
|
|
757
|
+
* @type {string}
|
|
758
|
+
* @memberof CreateFieldRequest
|
|
759
|
+
*/
|
|
760
|
+
'display_name': string;
|
|
761
|
+
/**
|
|
762
|
+
* Type of the values of the field <table> <thead> <tr> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>Checkbox</code></td> <td>A boolean value (true/false)</td> </tr> <tr> <td><code>Currency</code></td> <td>A monetary value</td> </tr> <tr> <td><code>Date</code></td> <td>A date value</td> </tr> <tr> <td><code>Dropdown</code></td> <td>A single selection from predefined options (see <code>data.options</code>)</td> </tr> <tr> <td><code>Email</code></td> <td>An email address</td> </tr> <tr> <td><code>List</code></td> <td>Multiple selections from predefined options (see <code>data.options</code>)</td> </tr> <tr> <td><code>Number</code></td> <td>A numeric value</td> </tr> <tr> <td><code>Phone</code></td> <td>A phone number</td> </tr> <tr> <td><code>Text</code></td> <td>A single-line text value</td> </tr> <tr> <td><code>TextArea</code></td> <td>A multi-line text value</td> </tr> </tbody> </table>
|
|
763
|
+
* @type {string}
|
|
764
|
+
* @memberof CreateFieldRequest
|
|
765
|
+
*/
|
|
766
|
+
'data_type': CreateFieldRequestDataTypeEnum;
|
|
767
|
+
/**
|
|
768
|
+
*
|
|
769
|
+
* @type {CreateFieldRequestData}
|
|
770
|
+
* @memberof CreateFieldRequest
|
|
771
|
+
*/
|
|
772
|
+
'data'?: CreateFieldRequestData;
|
|
773
|
+
/**
|
|
774
|
+
* Is this field required (true) or optional (false). Defaults to false.
|
|
775
|
+
* @type {boolean}
|
|
776
|
+
* @memberof CreateFieldRequest
|
|
777
|
+
*/
|
|
778
|
+
'required'?: boolean;
|
|
779
|
+
/**
|
|
780
|
+
* A description of the field\'s purpose
|
|
781
|
+
* @type {string}
|
|
782
|
+
* @memberof CreateFieldRequest
|
|
783
|
+
*/
|
|
784
|
+
'description'?: string;
|
|
785
|
+
}
|
|
786
|
+
export declare const CreateFieldRequestDataTypeEnum: {
|
|
787
|
+
readonly Checkbox: "Checkbox";
|
|
788
|
+
readonly Currency: "Currency";
|
|
789
|
+
readonly Date: "Date";
|
|
790
|
+
readonly Dropdown: "Dropdown";
|
|
791
|
+
readonly Email: "Email";
|
|
792
|
+
readonly List: "List";
|
|
793
|
+
readonly Number: "Number";
|
|
794
|
+
readonly Phone: "Phone";
|
|
795
|
+
readonly Text: "Text";
|
|
796
|
+
readonly TextArea: "TextArea";
|
|
797
|
+
};
|
|
798
|
+
export type CreateFieldRequestDataTypeEnum = typeof CreateFieldRequestDataTypeEnum[keyof typeof CreateFieldRequestDataTypeEnum];
|
|
799
|
+
/**
|
|
800
|
+
* Additional configuration for the field. Required for `Dropdown` and `List` data types.
|
|
801
|
+
* @export
|
|
802
|
+
* @interface CreateFieldRequestData
|
|
803
|
+
*/
|
|
804
|
+
export interface CreateFieldRequestData {
|
|
805
|
+
/**
|
|
806
|
+
* List of valid options for `Dropdown` and `List` field types.
|
|
807
|
+
* @type {Array<string>}
|
|
808
|
+
* @memberof CreateFieldRequestData
|
|
809
|
+
*/
|
|
810
|
+
'options'?: Array<string>;
|
|
811
|
+
}
|
|
686
812
|
/**
|
|
687
813
|
*
|
|
688
814
|
* @export
|
|
@@ -1889,19 +2015,17 @@ export interface Field {
|
|
|
1889
2015
|
*/
|
|
1890
2016
|
'label'?: string;
|
|
1891
2017
|
/**
|
|
1892
|
-
* Type of the values of the field
|
|
2018
|
+
* Type of the values of the field <table> <thead> <tr> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>Checkbox</code></td> <td>A boolean value (true/false)</td> </tr> <tr> <td><code>Currency</code></td> <td>A monetary value</td> </tr> <tr> <td><code>Date</code></td> <td>A date value</td> </tr> <tr> <td><code>Dropdown</code></td> <td>A single selection from predefined options (see <code>data.options</code>)</td> </tr> <tr> <td><code>Email</code></td> <td>An email address</td> </tr> <tr> <td><code>List</code></td> <td>Multiple selections from predefined options (see <code>data.options</code>)</td> </tr> <tr> <td><code>Number</code></td> <td>A numeric value</td> </tr> <tr> <td><code>Phone</code></td> <td>A phone number</td> </tr> <tr> <td><code>Text</code></td> <td>A single-line text value</td> </tr> <tr> <td><code>TextArea</code></td> <td>A multi-line text value</td> </tr> </tbody> </table>
|
|
1893
2019
|
* @type {string}
|
|
1894
2020
|
* @memberof Field
|
|
1895
2021
|
*/
|
|
1896
|
-
'data_type'?:
|
|
2022
|
+
'data_type'?: FieldDataTypeEnum;
|
|
1897
2023
|
/**
|
|
1898
2024
|
*
|
|
1899
|
-
* @type {
|
|
2025
|
+
* @type {ListFields200ResponseFieldsInnerData}
|
|
1900
2026
|
* @memberof Field
|
|
1901
2027
|
*/
|
|
1902
|
-
'data'?:
|
|
1903
|
-
[key: string]: any;
|
|
1904
|
-
};
|
|
2028
|
+
'data'?: ListFields200ResponseFieldsInnerData;
|
|
1905
2029
|
/**
|
|
1906
2030
|
* Is this field required (true) or optional (false)
|
|
1907
2031
|
* @type {boolean}
|
|
@@ -1915,6 +2039,19 @@ export interface Field {
|
|
|
1915
2039
|
*/
|
|
1916
2040
|
'scope'?: string;
|
|
1917
2041
|
}
|
|
2042
|
+
export declare const FieldDataTypeEnum: {
|
|
2043
|
+
readonly Checkbox: "Checkbox";
|
|
2044
|
+
readonly Currency: "Currency";
|
|
2045
|
+
readonly Date: "Date";
|
|
2046
|
+
readonly Dropdown: "Dropdown";
|
|
2047
|
+
readonly Email: "Email";
|
|
2048
|
+
readonly List: "List";
|
|
2049
|
+
readonly Number: "Number";
|
|
2050
|
+
readonly Phone: "Phone";
|
|
2051
|
+
readonly Text: "Text";
|
|
2052
|
+
readonly TextArea: "TextArea";
|
|
2053
|
+
};
|
|
2054
|
+
export type FieldDataTypeEnum = typeof FieldDataTypeEnum[keyof typeof FieldDataTypeEnum];
|
|
1918
2055
|
/**
|
|
1919
2056
|
*
|
|
1920
2057
|
* @export
|
|
@@ -3801,19 +3938,17 @@ export interface ListFields200ResponseFieldsInner {
|
|
|
3801
3938
|
*/
|
|
3802
3939
|
'label'?: string;
|
|
3803
3940
|
/**
|
|
3804
|
-
* Type of the values of the field
|
|
3941
|
+
* Type of the values of the field <table> <thead> <tr> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>Checkbox</code></td> <td>A boolean value (true/false)</td> </tr> <tr> <td><code>Currency</code></td> <td>A monetary value</td> </tr> <tr> <td><code>Date</code></td> <td>A date value</td> </tr> <tr> <td><code>Dropdown</code></td> <td>A single selection from predefined options (see <code>data.options</code>)</td> </tr> <tr> <td><code>Email</code></td> <td>An email address</td> </tr> <tr> <td><code>List</code></td> <td>Multiple selections from predefined options (see <code>data.options</code>)</td> </tr> <tr> <td><code>Number</code></td> <td>A numeric value</td> </tr> <tr> <td><code>Phone</code></td> <td>A phone number</td> </tr> <tr> <td><code>Text</code></td> <td>A single-line text value</td> </tr> <tr> <td><code>TextArea</code></td> <td>A multi-line text value</td> </tr> </tbody> </table>
|
|
3805
3942
|
* @type {string}
|
|
3806
3943
|
* @memberof ListFields200ResponseFieldsInner
|
|
3807
3944
|
*/
|
|
3808
|
-
'data_type'?:
|
|
3945
|
+
'data_type'?: ListFields200ResponseFieldsInnerDataTypeEnum;
|
|
3809
3946
|
/**
|
|
3810
3947
|
*
|
|
3811
|
-
* @type {
|
|
3948
|
+
* @type {ListFields200ResponseFieldsInnerData}
|
|
3812
3949
|
* @memberof ListFields200ResponseFieldsInner
|
|
3813
3950
|
*/
|
|
3814
|
-
'data'?:
|
|
3815
|
-
[key: string]: any;
|
|
3816
|
-
};
|
|
3951
|
+
'data'?: ListFields200ResponseFieldsInnerData;
|
|
3817
3952
|
/**
|
|
3818
3953
|
* Is this field required (true) or optional (false)
|
|
3819
3954
|
* @type {boolean}
|
|
@@ -3827,6 +3962,40 @@ export interface ListFields200ResponseFieldsInner {
|
|
|
3827
3962
|
*/
|
|
3828
3963
|
'scope'?: string;
|
|
3829
3964
|
}
|
|
3965
|
+
export declare const ListFields200ResponseFieldsInnerDataTypeEnum: {
|
|
3966
|
+
readonly Checkbox: "Checkbox";
|
|
3967
|
+
readonly Currency: "Currency";
|
|
3968
|
+
readonly Date: "Date";
|
|
3969
|
+
readonly Dropdown: "Dropdown";
|
|
3970
|
+
readonly Email: "Email";
|
|
3971
|
+
readonly List: "List";
|
|
3972
|
+
readonly Number: "Number";
|
|
3973
|
+
readonly Phone: "Phone";
|
|
3974
|
+
readonly Text: "Text";
|
|
3975
|
+
readonly TextArea: "TextArea";
|
|
3976
|
+
};
|
|
3977
|
+
export type ListFields200ResponseFieldsInnerDataTypeEnum = typeof ListFields200ResponseFieldsInnerDataTypeEnum[keyof typeof ListFields200ResponseFieldsInnerDataTypeEnum];
|
|
3978
|
+
/**
|
|
3979
|
+
* Additional configuration for the field. Only used for `Dropdown` and `List` data types.
|
|
3980
|
+
* @export
|
|
3981
|
+
* @interface ListFields200ResponseFieldsInnerData
|
|
3982
|
+
*/
|
|
3983
|
+
export interface ListFields200ResponseFieldsInnerData {
|
|
3984
|
+
/**
|
|
3985
|
+
* List of valid options for `Dropdown` and `List` field types. For `Dropdown`, the user selects one option. For `List`, the user can select multiple options.
|
|
3986
|
+
* @type {Array<string>}
|
|
3987
|
+
* @memberof ListFields200ResponseFieldsInnerData
|
|
3988
|
+
*/
|
|
3989
|
+
'options'?: Array<string>;
|
|
3990
|
+
/**
|
|
3991
|
+
* Optional human-readable labels for each option. Keys are the option values, values are the display labels. If not provided, the option values are used as labels.
|
|
3992
|
+
* @type {{ [key: string]: string; }}
|
|
3993
|
+
* @memberof ListFields200ResponseFieldsInnerData
|
|
3994
|
+
*/
|
|
3995
|
+
'labels'?: {
|
|
3996
|
+
[key: string]: string;
|
|
3997
|
+
};
|
|
3998
|
+
}
|
|
3830
3999
|
/**
|
|
3831
4000
|
*
|
|
3832
4001
|
* @export
|
|
@@ -8790,6 +8959,14 @@ export declare class ConnectedOrganizationsApi extends BaseAPI {
|
|
|
8790
8959
|
* @export
|
|
8791
8960
|
*/
|
|
8792
8961
|
export declare const FieldsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
8962
|
+
/**
|
|
8963
|
+
* Create a custom field to be associated with rewards. Custom fields can be used for reporting and analytics purposes.
|
|
8964
|
+
* @summary Create field
|
|
8965
|
+
* @param {CreateFieldRequest} createFieldRequest Field details
|
|
8966
|
+
* @param {*} [options] Override http request option.
|
|
8967
|
+
* @throws {RequiredError}
|
|
8968
|
+
*/
|
|
8969
|
+
createField: (createFieldRequest: CreateFieldRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8793
8970
|
/**
|
|
8794
8971
|
* For reporting and analytics purposes, custom fields can be associated with rewards generated through the API. Custom fields must be first added by members of your admin team through the Tremendous Dashboard.
|
|
8795
8972
|
* @summary List fields
|
|
@@ -8803,6 +8980,14 @@ export declare const FieldsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
8803
8980
|
* @export
|
|
8804
8981
|
*/
|
|
8805
8982
|
export declare const FieldsApiFp: (configuration?: Configuration) => {
|
|
8983
|
+
/**
|
|
8984
|
+
* Create a custom field to be associated with rewards. Custom fields can be used for reporting and analytics purposes.
|
|
8985
|
+
* @summary Create field
|
|
8986
|
+
* @param {CreateFieldRequest} createFieldRequest Field details
|
|
8987
|
+
* @param {*} [options] Override http request option.
|
|
8988
|
+
* @throws {RequiredError}
|
|
8989
|
+
*/
|
|
8990
|
+
createField(createFieldRequest: CreateFieldRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateField200Response>>;
|
|
8806
8991
|
/**
|
|
8807
8992
|
* For reporting and analytics purposes, custom fields can be associated with rewards generated through the API. Custom fields must be first added by members of your admin team through the Tremendous Dashboard.
|
|
8808
8993
|
* @summary List fields
|
|
@@ -8816,6 +9001,14 @@ export declare const FieldsApiFp: (configuration?: Configuration) => {
|
|
|
8816
9001
|
* @export
|
|
8817
9002
|
*/
|
|
8818
9003
|
export declare const FieldsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
9004
|
+
/**
|
|
9005
|
+
* Create a custom field to be associated with rewards. Custom fields can be used for reporting and analytics purposes.
|
|
9006
|
+
* @summary Create field
|
|
9007
|
+
* @param {CreateFieldRequest} createFieldRequest Field details
|
|
9008
|
+
* @param {*} [options] Override http request option.
|
|
9009
|
+
* @throws {RequiredError}
|
|
9010
|
+
*/
|
|
9011
|
+
createField(createFieldRequest: CreateFieldRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateField200Response>;
|
|
8819
9012
|
/**
|
|
8820
9013
|
* For reporting and analytics purposes, custom fields can be associated with rewards generated through the API. Custom fields must be first added by members of your admin team through the Tremendous Dashboard.
|
|
8821
9014
|
* @summary List fields
|
|
@@ -8831,6 +9024,15 @@ export declare const FieldsApiFactory: (configuration?: Configuration, basePath?
|
|
|
8831
9024
|
* @extends {BaseAPI}
|
|
8832
9025
|
*/
|
|
8833
9026
|
export declare class FieldsApi extends BaseAPI {
|
|
9027
|
+
/**
|
|
9028
|
+
* Create a custom field to be associated with rewards. Custom fields can be used for reporting and analytics purposes.
|
|
9029
|
+
* @summary Create field
|
|
9030
|
+
* @param {CreateFieldRequest} createFieldRequest Field details
|
|
9031
|
+
* @param {*} [options] Override http request option.
|
|
9032
|
+
* @throws {RequiredError}
|
|
9033
|
+
* @memberof FieldsApi
|
|
9034
|
+
*/
|
|
9035
|
+
createField(createFieldRequest: CreateFieldRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateField200Response, any, {}>>;
|
|
8834
9036
|
/**
|
|
8835
9037
|
* For reporting and analytics purposes, custom fields can be associated with rewards generated through the API. Custom fields must be first added by members of your admin team through the Tremendous Dashboard.
|
|
8836
9038
|
* @summary List fields
|
package/dist/api.js
CHANGED
|
@@ -22,10 +22,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TopupsApi = exports.TopupsApiFactory = exports.TopupsApiFp = exports.TopupsApiAxiosParamCreator = exports.RolesApi = exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiAxiosParamCreator = exports.RewardsApi = exports.RewardsApiFactory = exports.RewardsApiFp = exports.RewardsApiAxiosParamCreator = exports.ReportsApi = exports.ReportsApiFactory = exports.ReportsApiFp = exports.ReportsApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.MembersApi = exports.MembersApiFactory = exports.MembersApiFp = exports.MembersApiAxiosParamCreator = exports.InvoicesApi = exports.InvoicesApiFactory = exports.InvoicesApiFp = exports.InvoicesApiAxiosParamCreator = exports.FundingSourcesApi = exports.FundingSourcesApiFactory = void 0;
|
|
25
|
+
exports.GetFraudReview200ResponseFraudReviewStatusEnum = exports.FundingSourceTypeEnum = exports.FundingSourceStatusEnum = exports.FundingSourceUsagePermissionsEnum = exports.FundingSourceMethodEnum = exports.FraudRulesListItemRuleTypeEnum = exports.FraudRuleType = exports.FraudRuleRequestConfigPeriodEnum = exports.FraudRuleRequestConfigTypeEnum = exports.FraudReviewStatus = exports.FraudReviewRisk = exports.FraudReviewRedemptionMethod = exports.FraudReviewReason = exports.FraudReviewListItemRedemptionMethodEnum = exports.FraudReviewListItemReasonsEnum = exports.FraudReviewListItemStatusEnum = exports.FraudReviewBaseRedemptionMethodEnum = exports.FraudReviewBaseReasonsEnum = exports.FraudReviewBaseStatusEnum = exports.FraudReviewRiskEnum = exports.FraudReviewRedemptionMethodEnum = exports.FraudReviewReasonsEnum = exports.FraudReviewStatusEnum = exports.FraudConfigRedeemedRewardsCountPeriodEnum = exports.FraudConfigRedeemedRewardsAmountPeriodEnum = exports.FraudConfigCountryTypeEnum = exports.FieldDataTypeEnum = exports.DeliveryStatus = exports.DeliveryMethod = exports.DeliveryDetailsWithLinkStatusEnum = exports.DeliveryDetailsWithLinkMethodEnum = exports.DeliveryDetailsStatusEnum = exports.DeliveryDetailsMethodEnum = exports.CurrencyCodes = exports.CreateReportRequestFiltersDigitalRewardsStatusEnum = exports.CreateReportRequestFiltersDigitalRewardsOrderStatusEnum = exports.CreateReportRequestFiltersDigitalRewardsDeliveryMethodEnum = exports.CreateReportRequestFormatEnum = exports.CreateReportRequestReportTypeEnum = exports.CreateReport200ResponseReportStatusEnum = exports.CreateOrder200ResponseOrderRewardsInnerDeliveryStatusEnum = exports.CreateOrder200ResponseOrderRewardsInnerDeliveryMethodEnum = exports.CreateOrder200ResponseOrderChannelEnum = exports.CreateOrder200ResponseOrderStatusEnum = exports.CreateInvoiceRequestCurrencyEnum = exports.CreateFieldRequestDataTypeEnum = exports.CreateFieldDataTypeEnum = exports.ConnectedOrganizationOrganizationStatusEnum = exports.ConnectedOrganizationMemberMemberStatusEnum = exports.Channel = void 0;
|
|
26
|
+
exports.ProductSubcategoryEnum = exports.ProductCategoryEnum = exports.PayoutStatusEnum = exports.OrganizationStatusEnum = exports.OrderWithoutLinkChannelEnum = exports.OrderWithoutLinkStatusEnum = exports.OrderWithLinkChannelEnum = exports.OrderWithLinkStatusEnum = exports.OrderStatus = exports.OrderBaseChannelEnum = exports.OrderBaseStatusEnum = exports.OrderChannelEnum = exports.OrderStatusEnum = exports.MemberWithoutEventsStatusEnum = exports.MemberWithEventsStatusEnum = exports.MemberBaseStatusEnum = exports.MemberStatusEnum = exports.ListRewards200ResponseRewardsInnerValueCurrencyCodeEnum = exports.ListRewards200ResponseRewardsInnerDeliveryStatusEnum = exports.ListRewards200ResponseRewardsInnerDeliveryMethodEnum = exports.ListProductsResponseProductsInnerImagesInnerTypeEnum = exports.ListProductsResponseProductsInnerCurrencyCodesEnum = exports.ListProductsResponseProductsInnerSubcategoryEnum = exports.ListProductsResponseProductsInnerCategoryEnum = exports.ListOrganizations200ResponseOrganizationsInnerStatusEnum = exports.ListOrders200ResponseOrdersInnerChannelEnum = exports.ListOrders200ResponseOrdersInnerStatusEnum = exports.ListMembers200ResponseMembersInnerStatusEnum = exports.ListInvoices200ResponseInvoicesInnerStatusEnum = exports.ListInvoices200ResponseInvoicesInnerCurrencyEnum = exports.ListFundingSources200ResponseFundingSourcesInnerMetaNetworkEnum = exports.ListFundingSources200ResponseFundingSourcesInnerMetaAccountTypeEnum = exports.ListFundingSources200ResponseFundingSourcesInnerTypeEnum = exports.ListFundingSources200ResponseFundingSourcesInnerStatusEnum = exports.ListFundingSources200ResponseFundingSourcesInnerUsagePermissionsEnum = exports.ListFundingSources200ResponseFundingSourcesInnerMethodEnum = exports.ListFraudRules200ResponseFraudRulesInnerRuleTypeEnum = exports.ListFraudReviews200ResponseFraudReviewsInnerRedemptionMethodEnum = exports.ListFraudReviews200ResponseFraudReviewsInnerReasonsEnum = exports.ListFraudReviews200ResponseFraudReviewsInnerStatusEnum = exports.ListFields200ResponseFieldsInnerDataTypeEnum = exports.ListConnectedOrganizations200ResponseConnectedOrganizationsInnerOrganizationStatusEnum = exports.ListConnectedOrganizationMembers200ResponseConnectedOrganizationMembersInnerMemberStatusEnum = exports.InvoiceStatusEnum = exports.InvoiceCurrencyEnum = exports.GetMember200ResponseMemberEventsInnerTypeEnum = exports.GetMember200ResponseMemberStatusEnum = exports.GetFraudReview200ResponseFraudReviewRiskEnum = exports.GetFraudReview200ResponseFraudReviewRedemptionMethodEnum = exports.GetFraudReview200ResponseFraudReviewReasonsEnum = void 0;
|
|
27
|
+
exports.DeleteFraudRuleRuleTypeEnum = exports.FraudRulesApi = exports.FraudRulesApiFactory = exports.FraudRulesApiFp = exports.FraudRulesApiAxiosParamCreator = exports.ListFraudReviewsStatusEnum = exports.FraudReviewsApi = exports.FraudReviewsApiFactory = exports.FraudReviewsApiFp = exports.FraudReviewsApiAxiosParamCreator = exports.ForexApi = exports.ForexApiFactory = exports.ForexApiFp = exports.ForexApiAxiosParamCreator = exports.FieldsApi = exports.FieldsApiFactory = exports.FieldsApiFp = exports.FieldsApiAxiosParamCreator = exports.ConnectedOrganizationsApi = exports.ConnectedOrganizationsApiFactory = exports.ConnectedOrganizationsApiFp = exports.ConnectedOrganizationsApiAxiosParamCreator = exports.ConnectedOrganizationMembersApi = exports.ConnectedOrganizationMembersApiFactory = exports.ConnectedOrganizationMembersApiFp = exports.ConnectedOrganizationMembersApiAxiosParamCreator = exports.CampaignsApi = exports.CampaignsApiFactory = exports.CampaignsApiFp = exports.CampaignsApiAxiosParamCreator = exports.BalanceTransactionsApi = exports.BalanceTransactionsApiFactory = exports.BalanceTransactionsApiFp = exports.BalanceTransactionsApiAxiosParamCreator = exports.UpdateFraudRuleListRequestOperationEnum = exports.SingleRewardOrderWithoutLinkOrderChannelEnum = exports.SingleRewardOrderWithoutLinkOrderStatusEnum = exports.SingleRewardOrderWithLinkOrderChannelEnum = exports.SingleRewardOrderWithLinkOrderStatusEnum = exports.SingleRewardOrderRewardDeliveryMethodEnum = exports.RewardWithoutLinkDeliveryStatusEnum = exports.RewardWithoutLinkDeliveryMethodEnum = exports.RewardWithLinkDeliveryStatusEnum = exports.RewardWithLinkDeliveryMethodEnum = exports.RewardValueCurrencyCodeEnum = exports.ReviewRedeemedRewardsCountPeriodEnum = exports.ReviewRedeemedRewardsAmountPeriodEnum = exports.ReviewCountryTypeEnum = exports.ReportStatusEnum = exports.ProductCurrencyCodesEnum = void 0;
|
|
28
|
+
exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TopupsApi = exports.TopupsApiFactory = exports.TopupsApiFp = exports.TopupsApiAxiosParamCreator = exports.RolesApi = exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiAxiosParamCreator = exports.RewardsApi = exports.RewardsApiFactory = exports.RewardsApiFp = exports.RewardsApiAxiosParamCreator = exports.ReportsApi = exports.ReportsApiFactory = exports.ReportsApiFp = exports.ReportsApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.MembersApi = exports.MembersApiFactory = exports.MembersApiFp = exports.MembersApiAxiosParamCreator = exports.InvoicesApi = exports.InvoicesApiFactory = exports.InvoicesApiFp = exports.InvoicesApiAxiosParamCreator = exports.FundingSourcesApi = exports.FundingSourcesApiFactory = exports.FundingSourcesApiFp = exports.FundingSourcesApiAxiosParamCreator = exports.UpdateFraudRuleListRuleTypeEnum = exports.FraudRuleRuleTypeEnum = void 0;
|
|
29
29
|
const axios_1 = require("axios");
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
@@ -56,6 +56,30 @@ exports.ConnectedOrganizationOrganizationStatusEnum = {
|
|
|
56
56
|
Approved: 'APPROVED',
|
|
57
57
|
Rejected: 'REJECTED'
|
|
58
58
|
};
|
|
59
|
+
exports.CreateFieldDataTypeEnum = {
|
|
60
|
+
Checkbox: 'Checkbox',
|
|
61
|
+
Currency: 'Currency',
|
|
62
|
+
Date: 'Date',
|
|
63
|
+
Dropdown: 'Dropdown',
|
|
64
|
+
Email: 'Email',
|
|
65
|
+
List: 'List',
|
|
66
|
+
Number: 'Number',
|
|
67
|
+
Phone: 'Phone',
|
|
68
|
+
Text: 'Text',
|
|
69
|
+
TextArea: 'TextArea'
|
|
70
|
+
};
|
|
71
|
+
exports.CreateFieldRequestDataTypeEnum = {
|
|
72
|
+
Checkbox: 'Checkbox',
|
|
73
|
+
Currency: 'Currency',
|
|
74
|
+
Date: 'Date',
|
|
75
|
+
Dropdown: 'Dropdown',
|
|
76
|
+
Email: 'Email',
|
|
77
|
+
List: 'List',
|
|
78
|
+
Number: 'Number',
|
|
79
|
+
Phone: 'Phone',
|
|
80
|
+
Text: 'Text',
|
|
81
|
+
TextArea: 'TextArea'
|
|
82
|
+
};
|
|
59
83
|
exports.CreateInvoiceRequestCurrencyEnum = {
|
|
60
84
|
Usd: 'USD',
|
|
61
85
|
Eur: 'EUR',
|
|
@@ -287,6 +311,18 @@ exports.DeliveryStatus = {
|
|
|
287
311
|
Succeeded: 'SUCCEEDED',
|
|
288
312
|
Pending: 'PENDING'
|
|
289
313
|
};
|
|
314
|
+
exports.FieldDataTypeEnum = {
|
|
315
|
+
Checkbox: 'Checkbox',
|
|
316
|
+
Currency: 'Currency',
|
|
317
|
+
Date: 'Date',
|
|
318
|
+
Dropdown: 'Dropdown',
|
|
319
|
+
Email: 'Email',
|
|
320
|
+
List: 'List',
|
|
321
|
+
Number: 'Number',
|
|
322
|
+
Phone: 'Phone',
|
|
323
|
+
Text: 'Text',
|
|
324
|
+
TextArea: 'TextArea'
|
|
325
|
+
};
|
|
290
326
|
exports.FraudConfigCountryTypeEnum = {
|
|
291
327
|
Whitelist: 'whitelist',
|
|
292
328
|
Blacklist: 'blacklist'
|
|
@@ -624,6 +660,18 @@ exports.ListConnectedOrganizations200ResponseConnectedOrganizationsInnerOrganiza
|
|
|
624
660
|
Approved: 'APPROVED',
|
|
625
661
|
Rejected: 'REJECTED'
|
|
626
662
|
};
|
|
663
|
+
exports.ListFields200ResponseFieldsInnerDataTypeEnum = {
|
|
664
|
+
Checkbox: 'Checkbox',
|
|
665
|
+
Currency: 'Currency',
|
|
666
|
+
Date: 'Date',
|
|
667
|
+
Dropdown: 'Dropdown',
|
|
668
|
+
Email: 'Email',
|
|
669
|
+
List: 'List',
|
|
670
|
+
Number: 'Number',
|
|
671
|
+
Phone: 'Phone',
|
|
672
|
+
Text: 'Text',
|
|
673
|
+
TextArea: 'TextArea'
|
|
674
|
+
};
|
|
627
675
|
exports.ListFraudReviews200ResponseFraudReviewsInnerStatusEnum = {
|
|
628
676
|
Flagged: 'flagged',
|
|
629
677
|
Blocked: 'blocked',
|
|
@@ -2534,6 +2582,39 @@ exports.ConnectedOrganizationsApi = ConnectedOrganizationsApi;
|
|
|
2534
2582
|
*/
|
|
2535
2583
|
const FieldsApiAxiosParamCreator = function (configuration) {
|
|
2536
2584
|
return {
|
|
2585
|
+
/**
|
|
2586
|
+
* Create a custom field to be associated with rewards. Custom fields can be used for reporting and analytics purposes.
|
|
2587
|
+
* @summary Create field
|
|
2588
|
+
* @param {CreateFieldRequest} createFieldRequest Field details
|
|
2589
|
+
* @param {*} [options] Override http request option.
|
|
2590
|
+
* @throws {RequiredError}
|
|
2591
|
+
*/
|
|
2592
|
+
createField: (createFieldRequest_1, ...args_1) => __awaiter(this, [createFieldRequest_1, ...args_1], void 0, function* (createFieldRequest, options = {}) {
|
|
2593
|
+
// verify required parameter 'createFieldRequest' is not null or undefined
|
|
2594
|
+
(0, common_1.assertParamExists)('createField', 'createFieldRequest', createFieldRequest);
|
|
2595
|
+
const localVarPath = `/fields`;
|
|
2596
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2597
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2598
|
+
let baseOptions;
|
|
2599
|
+
if (configuration) {
|
|
2600
|
+
baseOptions = configuration.baseOptions;
|
|
2601
|
+
}
|
|
2602
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2603
|
+
const localVarHeaderParameter = {};
|
|
2604
|
+
const localVarQueryParameter = {};
|
|
2605
|
+
// authentication BearerApiKey required
|
|
2606
|
+
// http bearer authentication required
|
|
2607
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2608
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2609
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2610
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2611
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2612
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createFieldRequest, localVarRequestOptions, configuration);
|
|
2613
|
+
return {
|
|
2614
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2615
|
+
options: localVarRequestOptions,
|
|
2616
|
+
};
|
|
2617
|
+
}),
|
|
2537
2618
|
/**
|
|
2538
2619
|
* For reporting and analytics purposes, custom fields can be associated with rewards generated through the API. Custom fields must be first added by members of your admin team through the Tremendous Dashboard.
|
|
2539
2620
|
* @summary List fields
|
|
@@ -2572,6 +2653,22 @@ exports.FieldsApiAxiosParamCreator = FieldsApiAxiosParamCreator;
|
|
|
2572
2653
|
const FieldsApiFp = function (configuration) {
|
|
2573
2654
|
const localVarAxiosParamCreator = (0, exports.FieldsApiAxiosParamCreator)(configuration);
|
|
2574
2655
|
return {
|
|
2656
|
+
/**
|
|
2657
|
+
* Create a custom field to be associated with rewards. Custom fields can be used for reporting and analytics purposes.
|
|
2658
|
+
* @summary Create field
|
|
2659
|
+
* @param {CreateFieldRequest} createFieldRequest Field details
|
|
2660
|
+
* @param {*} [options] Override http request option.
|
|
2661
|
+
* @throws {RequiredError}
|
|
2662
|
+
*/
|
|
2663
|
+
createField(createFieldRequest, options) {
|
|
2664
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2665
|
+
var _a, _b, _c;
|
|
2666
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createField(createFieldRequest, options);
|
|
2667
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2668
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FieldsApi.createField']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2669
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2670
|
+
});
|
|
2671
|
+
},
|
|
2575
2672
|
/**
|
|
2576
2673
|
* For reporting and analytics purposes, custom fields can be associated with rewards generated through the API. Custom fields must be first added by members of your admin team through the Tremendous Dashboard.
|
|
2577
2674
|
* @summary List fields
|
|
@@ -2597,6 +2694,16 @@ exports.FieldsApiFp = FieldsApiFp;
|
|
|
2597
2694
|
const FieldsApiFactory = function (configuration, basePath, axios) {
|
|
2598
2695
|
const localVarFp = (0, exports.FieldsApiFp)(configuration);
|
|
2599
2696
|
return {
|
|
2697
|
+
/**
|
|
2698
|
+
* Create a custom field to be associated with rewards. Custom fields can be used for reporting and analytics purposes.
|
|
2699
|
+
* @summary Create field
|
|
2700
|
+
* @param {CreateFieldRequest} createFieldRequest Field details
|
|
2701
|
+
* @param {*} [options] Override http request option.
|
|
2702
|
+
* @throws {RequiredError}
|
|
2703
|
+
*/
|
|
2704
|
+
createField(createFieldRequest, options) {
|
|
2705
|
+
return localVarFp.createField(createFieldRequest, options).then((request) => request(axios, basePath));
|
|
2706
|
+
},
|
|
2600
2707
|
/**
|
|
2601
2708
|
* For reporting and analytics purposes, custom fields can be associated with rewards generated through the API. Custom fields must be first added by members of your admin team through the Tremendous Dashboard.
|
|
2602
2709
|
* @summary List fields
|
|
@@ -2616,6 +2723,17 @@ exports.FieldsApiFactory = FieldsApiFactory;
|
|
|
2616
2723
|
* @extends {BaseAPI}
|
|
2617
2724
|
*/
|
|
2618
2725
|
class FieldsApi extends base_1.BaseAPI {
|
|
2726
|
+
/**
|
|
2727
|
+
* Create a custom field to be associated with rewards. Custom fields can be used for reporting and analytics purposes.
|
|
2728
|
+
* @summary Create field
|
|
2729
|
+
* @param {CreateFieldRequest} createFieldRequest Field details
|
|
2730
|
+
* @param {*} [options] Override http request option.
|
|
2731
|
+
* @throws {RequiredError}
|
|
2732
|
+
* @memberof FieldsApi
|
|
2733
|
+
*/
|
|
2734
|
+
createField(createFieldRequest, options) {
|
|
2735
|
+
return (0, exports.FieldsApiFp)(this.configuration).createField(createFieldRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2736
|
+
}
|
|
2619
2737
|
/**
|
|
2620
2738
|
* For reporting and analytics purposes, custom fields can be associated with rewards generated through the API. Custom fields must be first added by members of your admin team through the Tremendous Dashboard.
|
|
2621
2739
|
* @summary List fields
|