@voucherify/sdk 2.9.2 → 2.9.3
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/voucherifysdk.cjs +2 -0
- package/dist/voucherifysdk.cjs.map +1 -0
- package/dist/voucherifysdk.d.mts +5252 -0
- package/dist/voucherifysdk.d.ts +5252 -0
- package/dist/voucherifysdk.esm.js +2 -2261
- package/dist/voucherifysdk.esm.js.map +1 -1
- package/package.json +12 -8
- package/CHANGELOG.md +0 -663
- package/dist/ApiLimitsHandler.d.ts +0 -10
- package/dist/AsyncActions.d.ts +0 -15
- package/dist/Balance.d.ts +0 -12
- package/dist/Campaigns.d.ts +0 -58
- package/dist/Categories.d.ts +0 -26
- package/dist/ClientSide.d.ts +0 -53
- package/dist/Consents.d.ts +0 -10
- package/dist/Customers.d.ts +0 -72
- package/dist/Distributions.d.ts +0 -22
- package/dist/Events.d.ts +0 -10
- package/dist/Exports.d.ts +0 -22
- package/dist/Loyalties.d.ts +0 -159
- package/dist/MetadataSchemas.d.ts +0 -14
- package/dist/Orders.d.ts +0 -27
- package/dist/ProductCollections.d.ts +0 -26
- package/dist/Products.d.ts +0 -63
- package/dist/PromotionTiers.d.ts +0 -34
- package/dist/Promotions.d.ts +0 -18
- package/dist/PromotionsStacks.d.ts +0 -30
- package/dist/Qualifications.d.ts +0 -10
- package/dist/Redemptions.d.ts +0 -35
- package/dist/RequestController.d.ts +0 -29
- package/dist/Rewards.d.ts +0 -43
- package/dist/Segments.d.ts +0 -22
- package/dist/ValidationRules.d.ts +0 -43
- package/dist/Validations.d.ts +0 -17
- package/dist/VoucherifyClientSide.d.ts +0 -86
- package/dist/VoucherifyError.d.ts +0 -20
- package/dist/VoucherifyServerSide.d.ts +0 -131
- package/dist/Vouchers.d.ts +0 -78
- package/dist/helpers.d.ts +0 -18
- package/dist/index.d.ts +0 -25
- package/dist/types/ApplicableTo.d.ts +0 -30
- package/dist/types/AsyncActions.d.ts +0 -21
- package/dist/types/Balance.d.ts +0 -16
- package/dist/types/Campaigns.d.ts +0 -120
- package/dist/types/Categories.d.ts +0 -38
- package/dist/types/ClientSide.d.ts +0 -134
- package/dist/types/Consents.d.ts +0 -33
- package/dist/types/Customers.d.ts +0 -361
- package/dist/types/DiscountVoucher.d.ts +0 -93
- package/dist/types/Distributions.d.ts +0 -144
- package/dist/types/Events.d.ts +0 -17
- package/dist/types/Exports.d.ts +0 -149
- package/dist/types/Gift.d.ts +0 -3
- package/dist/types/Loyalties.d.ts +0 -1057
- package/dist/types/MetadataSchemas.d.ts +0 -33
- package/dist/types/Orders.d.ts +0 -195
- package/dist/types/ProductCollections.d.ts +0 -96
- package/dist/types/Products.d.ts +0 -106
- package/dist/types/PromotionTiers.d.ts +0 -127
- package/dist/types/Promotions.d.ts +0 -108
- package/dist/types/PromotionsStacks.d.ts +0 -71
- package/dist/types/Qualifications.d.ts +0 -86
- package/dist/types/Redemptions.d.ts +0 -205
- package/dist/types/Rewards.d.ts +0 -219
- package/dist/types/Segments.d.ts +0 -32
- package/dist/types/Stackable.d.ts +0 -101
- package/dist/types/UtilityTypes.d.ts +0 -3
- package/dist/types/ValidateSession.d.ts +0 -17
- package/dist/types/ValidationError.d.ts +0 -7
- package/dist/types/ValidationRules.d.ts +0 -93
- package/dist/types/Validations.d.ts +0 -98
- package/dist/types/Vouchers.d.ts +0 -364
- package/dist/types/index.d.ts +0 -25
- package/dist/voucherifysdk.umd.development.js +0 -2270
- package/dist/voucherifysdk.umd.development.js.map +0 -1
- package/dist/voucherifysdk.umd.production.min.js +0 -2
- package/dist/voucherifysdk.umd.production.min.js.map +0 -1
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export interface AsyncActionsResponse {
|
|
2
|
-
id: string;
|
|
3
|
-
type: string;
|
|
4
|
-
status: string;
|
|
5
|
-
result: object;
|
|
6
|
-
created_at: string;
|
|
7
|
-
object: 'async_action';
|
|
8
|
-
}
|
|
9
|
-
export interface AsyncActionsListParams {
|
|
10
|
-
limit?: number;
|
|
11
|
-
end_date?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface AsyncActionsListResponse {
|
|
14
|
-
object: 'list';
|
|
15
|
-
data_ref: 'async_actions';
|
|
16
|
-
async_actions: Omit<AsyncActionsResponse, 'result'>[];
|
|
17
|
-
}
|
|
18
|
-
export interface AsyncActionCreateResponse {
|
|
19
|
-
async_action_id: string;
|
|
20
|
-
}
|
|
21
|
-
export declare type AsyncActionsGetResponse = AsyncActionsResponse;
|
package/dist/types/Balance.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface BalanceCreateParams {
|
|
2
|
-
amount: number;
|
|
3
|
-
source_id?: string;
|
|
4
|
-
reason?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface BalanceCreateResponse {
|
|
7
|
-
amount: number;
|
|
8
|
-
total: number;
|
|
9
|
-
balance: number;
|
|
10
|
-
type: string;
|
|
11
|
-
object: 'balance';
|
|
12
|
-
related_object: {
|
|
13
|
-
type: string;
|
|
14
|
-
id: string;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { SimpleVoucher, VouchersImport, VouchersResponse } from './Vouchers';
|
|
2
|
-
import { CustomerRequest } from './Customers';
|
|
3
|
-
import { OrdersGetResponse } from './Orders';
|
|
4
|
-
import { ValidationRulesCreateAssignmentResponse } from './ValidationRules';
|
|
5
|
-
interface ReferralProgramCustomEventRedemption {
|
|
6
|
-
conversion_event_type: 'custom_event';
|
|
7
|
-
custom_event: {
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
};
|
|
11
|
-
referee_reward?: {
|
|
12
|
-
related_object_parent: {
|
|
13
|
-
id: string;
|
|
14
|
-
name: string;
|
|
15
|
-
object: 'CAMPAIGN';
|
|
16
|
-
};
|
|
17
|
-
amount: number;
|
|
18
|
-
type: 'GIFT_VOUCHER' | 'LOYALTY_CARD';
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
interface ReferralProgramRedemption {
|
|
22
|
-
conversion_event_type: 'redemption';
|
|
23
|
-
referee_reward?: {
|
|
24
|
-
related_object_parent: {
|
|
25
|
-
id: string;
|
|
26
|
-
name: string;
|
|
27
|
-
object: 'CAMPAIGN';
|
|
28
|
-
};
|
|
29
|
-
amount: number;
|
|
30
|
-
type: 'GIFT_VOUCHER' | 'LOYALTY_CARD';
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export interface CampaignResponse {
|
|
34
|
-
id: string;
|
|
35
|
-
name: string;
|
|
36
|
-
campaign_type: 'LOYALTY_PROGRAM' | 'PROMOTION' | 'DISCOUNT_COUPONS' | 'GIFT_VOUCHERS' | 'REFERRAL_PROGRAM';
|
|
37
|
-
type: 'AUTO_UPDATE' | 'STATIC';
|
|
38
|
-
category?: string;
|
|
39
|
-
auto_join?: boolean;
|
|
40
|
-
join_once?: boolean;
|
|
41
|
-
description?: string;
|
|
42
|
-
start_date?: string;
|
|
43
|
-
validation_rules_assignments: {
|
|
44
|
-
data?: ValidationRulesCreateAssignmentResponse[];
|
|
45
|
-
object: 'list';
|
|
46
|
-
total: number;
|
|
47
|
-
data_ref: 'data';
|
|
48
|
-
};
|
|
49
|
-
expiration_date?: string;
|
|
50
|
-
activity_duration_after_publishing?: string;
|
|
51
|
-
validity_timeframe?: {
|
|
52
|
-
interval?: string;
|
|
53
|
-
duration?: string;
|
|
54
|
-
};
|
|
55
|
-
validity_day_of_week?: number[];
|
|
56
|
-
metadata?: Record<string, any>;
|
|
57
|
-
created_at: string;
|
|
58
|
-
vouchers_generation_status: 'IN_PROGRESS' | 'DONE' | 'FAILED' | 'DRAFT';
|
|
59
|
-
active: boolean;
|
|
60
|
-
voucher?: SimpleVoucher;
|
|
61
|
-
referral_program?: ReferralProgramCustomEventRedemption | ReferralProgramRedemption;
|
|
62
|
-
use_voucher_metadata_schema?: boolean;
|
|
63
|
-
protected?: boolean;
|
|
64
|
-
vouchers_count?: number;
|
|
65
|
-
object: 'campaign';
|
|
66
|
-
}
|
|
67
|
-
export interface CampaignsQualificationsBody {
|
|
68
|
-
customer?: CustomerRequest;
|
|
69
|
-
order?: Pick<OrdersGetResponse, 'id' | 'source_id' | 'items'>;
|
|
70
|
-
}
|
|
71
|
-
export interface CampaignsQualificationsParams {
|
|
72
|
-
audienceRulesOnly?: boolean;
|
|
73
|
-
order?: 'created_at' | '-created_at' | 'updated_at' | '-updated_at';
|
|
74
|
-
limit?: number;
|
|
75
|
-
}
|
|
76
|
-
export interface CampaignsQualificationsResponse {
|
|
77
|
-
object: 'list';
|
|
78
|
-
total: number;
|
|
79
|
-
data_ref: 'data';
|
|
80
|
-
data: CampaignResponse[];
|
|
81
|
-
id?: string;
|
|
82
|
-
created_at?: string;
|
|
83
|
-
}
|
|
84
|
-
export declare type CampaignsCreateCampaign = Omit<CampaignResponse, 'id' | 'protected' | 'vouchers_generation_status' | 'validation_rules_assignments' | 'object' | 'created_at' | 'active'> & {
|
|
85
|
-
active?: boolean;
|
|
86
|
-
};
|
|
87
|
-
export declare type CampaignsUpdateCampaign = Pick<CampaignResponse, 'start_date' | 'expiration_date' | 'type' | 'description' | 'metadata'>;
|
|
88
|
-
export interface CampaignsDeleteParams {
|
|
89
|
-
force?: boolean;
|
|
90
|
-
}
|
|
91
|
-
export declare type CampaignsAddVoucherBody = Pick<Partial<VouchersImport>, 'code_config' | 'category' | 'redemption' | 'metadata' | 'additional_info'>;
|
|
92
|
-
export interface CampaignsAddVoucherParams {
|
|
93
|
-
vouchers_count?: number;
|
|
94
|
-
}
|
|
95
|
-
export declare type CampaignsAddCertainVoucherParams = Pick<Partial<VouchersImport>, 'category' | 'redemption' | 'metadata' | 'additional_info'>;
|
|
96
|
-
export declare type CampaignsAddVoucherResponse = Pick<VouchersResponse, 'code' | 'object' | 'campaign' | 'category' | 'created_at' | 'type' | 'discount' | 'gift' | 'start_date' | 'expiration_date' | 'publish' | 'redemption' | 'active' | 'additional_info' | 'metadata' | 'assets'>;
|
|
97
|
-
export declare type CampaignsAddCertainVoucherResponse = CampaignsAddVoucherResponse;
|
|
98
|
-
export declare type CampaignsImportVouchers = Pick<VouchersImport, 'code' | 'redemption' | 'metadata' | 'additional_info' | 'active'>;
|
|
99
|
-
export interface CampaignsListParams {
|
|
100
|
-
limit?: number;
|
|
101
|
-
page?: number;
|
|
102
|
-
campaign_type?: 'DISCOUNT_COUPONS' | 'PROMOTION' | 'GIFT_VOUCHERS' | 'REFERRAL_PROGRAM';
|
|
103
|
-
filters?: {
|
|
104
|
-
junction?: string;
|
|
105
|
-
[filter_condition: string]: any;
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
export interface CampaignsListResponse {
|
|
109
|
-
object: 'list';
|
|
110
|
-
total: number;
|
|
111
|
-
data_ref: 'campaigns';
|
|
112
|
-
campaigns: CampaignResponse[];
|
|
113
|
-
}
|
|
114
|
-
export declare type CampaignsVouchersImportResponse = {
|
|
115
|
-
async_action_id: string;
|
|
116
|
-
};
|
|
117
|
-
export declare type CampaignsCreateCampaignResponse = CampaignResponse;
|
|
118
|
-
export declare type CampaignsUpdateCampaignResponse = CampaignResponse;
|
|
119
|
-
export declare type CampaignsGetCampaignResponse = CampaignResponse;
|
|
120
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export interface ListCategories {
|
|
2
|
-
object: 'list';
|
|
3
|
-
data_ref: 'data';
|
|
4
|
-
data: CategoryObject[];
|
|
5
|
-
total: number;
|
|
6
|
-
has_more: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare type CategoryObject = ResponseCreateCategory & {
|
|
9
|
-
updated_at?: string;
|
|
10
|
-
};
|
|
11
|
-
export interface CreateCategory {
|
|
12
|
-
name: string;
|
|
13
|
-
hierarchy: number;
|
|
14
|
-
}
|
|
15
|
-
export interface ResponseCreateCategory {
|
|
16
|
-
id: string;
|
|
17
|
-
name: string;
|
|
18
|
-
hierarchy: number;
|
|
19
|
-
created_at: string;
|
|
20
|
-
object: 'category';
|
|
21
|
-
}
|
|
22
|
-
export declare type ResponseUpdateCategory = ResponseCreateCategory & {
|
|
23
|
-
updated_at: string;
|
|
24
|
-
};
|
|
25
|
-
export declare type UpdateCategoryRequest = CreateCategory;
|
|
26
|
-
export declare type Category = {
|
|
27
|
-
id: string;
|
|
28
|
-
name: string;
|
|
29
|
-
hierarchy: number;
|
|
30
|
-
created_at: string;
|
|
31
|
-
updated_at?: string;
|
|
32
|
-
object: 'category';
|
|
33
|
-
stacking_rules_type?: 'JOINT' | 'EXCLUSIVE';
|
|
34
|
-
};
|
|
35
|
-
export declare type CategoriesListRequestQuery = {
|
|
36
|
-
limit?: number;
|
|
37
|
-
starting_after_id?: number;
|
|
38
|
-
};
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { CustomerRequest, CustomersCreateBody, CustomersCreateResponse, CustomersUpdateConsentsBody } from './Customers';
|
|
2
|
-
import { VouchersListParams, VouchersResponse } from './Vouchers';
|
|
3
|
-
import { DiscountAmount, DiscountPercent, DiscountUnit, DiscountFixed } from './DiscountVoucher';
|
|
4
|
-
import { OrdersCreateResponse, OrdersItem } from './Orders';
|
|
5
|
-
import { ConsentsListResponse } from './Consents';
|
|
6
|
-
import { DistributionsPublicationsCreateResponse } from './Distributions';
|
|
7
|
-
import { SimplePromotionTier } from './PromotionTiers';
|
|
8
|
-
import { ValidationSessionReleaseParams } from './ValidateSession';
|
|
9
|
-
import { ApplicableToResultList } from './ApplicableTo';
|
|
10
|
-
import { ValidationsValidateStackableParams, ValidationValidateStackableResponse } from './Validations';
|
|
11
|
-
import { RedemptionsRedeemStackableParams, RedemptionsRedeemStackableResponse } from './Redemptions';
|
|
12
|
-
declare type ClientSideItem = Pick<OrdersItem, 'source_id' | 'sku_id' | 'product_id' | 'sku' | 'quantity' | 'related_object' | 'amount'>;
|
|
13
|
-
export declare type ClientSideCustomersUpdateConsentsBody = CustomersUpdateConsentsBody;
|
|
14
|
-
export declare type ClientSideCustomersCreateParams = CustomersCreateBody;
|
|
15
|
-
export declare type ClientSideCustomersCreateResponse = CustomersCreateResponse;
|
|
16
|
-
export interface ClientSideValidateParams {
|
|
17
|
-
code?: string;
|
|
18
|
-
tracking_id?: string;
|
|
19
|
-
amount?: number;
|
|
20
|
-
items?: ClientSideItem[];
|
|
21
|
-
orderMetadata?: Record<string, any>;
|
|
22
|
-
customer?: Pick<CustomerRequest, 'source_id' | 'metadata'>;
|
|
23
|
-
reward?: {
|
|
24
|
-
id: string;
|
|
25
|
-
};
|
|
26
|
-
metadata?: Record<string, any>;
|
|
27
|
-
session_type?: 'LOCK';
|
|
28
|
-
session_key?: string;
|
|
29
|
-
session_ttl?: number;
|
|
30
|
-
session_ttl_unit?: 'MILLISECONDS' | 'SECONDS' | 'MINUTES' | 'HOURS' | 'DAYS';
|
|
31
|
-
}
|
|
32
|
-
export declare type ClientSideListVouchersParams = VouchersListParams;
|
|
33
|
-
export declare type ClientSideVoucherListing = Pick<VouchersResponse, 'active' | 'code' | 'metadata' | 'assets' | 'object' | 'expiration_date' | 'start_date' | 'created_at'>;
|
|
34
|
-
export interface ClientSideListVouchersResponse {
|
|
35
|
-
object: 'list';
|
|
36
|
-
total: number;
|
|
37
|
-
data_ref: 'vouchers';
|
|
38
|
-
vouchers: ClientSideVoucherListing[];
|
|
39
|
-
}
|
|
40
|
-
export interface ClientSideValidateResponse {
|
|
41
|
-
code?: string;
|
|
42
|
-
valid: boolean;
|
|
43
|
-
discount?: DiscountUnit | DiscountAmount | DiscountPercent | DiscountFixed;
|
|
44
|
-
applicable_to?: ApplicableToResultList;
|
|
45
|
-
order?: {
|
|
46
|
-
amount: number;
|
|
47
|
-
discount_amount: number;
|
|
48
|
-
total_discount_amount: number;
|
|
49
|
-
total_amount: number;
|
|
50
|
-
items?: ClientSideItem[];
|
|
51
|
-
};
|
|
52
|
-
tracking_id?: string;
|
|
53
|
-
campaign_id?: string;
|
|
54
|
-
loyalty?: {
|
|
55
|
-
points_cost: number;
|
|
56
|
-
};
|
|
57
|
-
gift?: {
|
|
58
|
-
amount: number;
|
|
59
|
-
balance: number;
|
|
60
|
-
};
|
|
61
|
-
promotions?: SimplePromotionTier[];
|
|
62
|
-
}
|
|
63
|
-
export interface ClientSideRedeemPayload {
|
|
64
|
-
tracking_id?: string;
|
|
65
|
-
customer?: CustomerRequest;
|
|
66
|
-
order?: ClientSideRedeemOrder;
|
|
67
|
-
metadata?: Record<string, any>;
|
|
68
|
-
reward?: {
|
|
69
|
-
id: string;
|
|
70
|
-
};
|
|
71
|
-
session?: ValidationSessionReleaseParams;
|
|
72
|
-
}
|
|
73
|
-
export interface ClientSideRedeemResponse {
|
|
74
|
-
id: string;
|
|
75
|
-
object: 'redemption';
|
|
76
|
-
date?: string;
|
|
77
|
-
customer_id?: string;
|
|
78
|
-
tracking_id?: string;
|
|
79
|
-
order?: OrdersCreateResponse;
|
|
80
|
-
metadata?: Record<string, any>;
|
|
81
|
-
result: 'SUCCESS' | 'FAILURE';
|
|
82
|
-
voucher?: VouchersResponse;
|
|
83
|
-
}
|
|
84
|
-
export interface ClientSidePublishPayload {
|
|
85
|
-
source_id?: string;
|
|
86
|
-
channel?: 'Voucherify.js' | string;
|
|
87
|
-
customer?: CustomerRequest;
|
|
88
|
-
voucher?: string;
|
|
89
|
-
metadata?: Record<string, any>;
|
|
90
|
-
}
|
|
91
|
-
export declare type ClientSidePublishPreparedPayload = ClientSidePublishPayload;
|
|
92
|
-
export interface ClientSidePublishQueryParams {
|
|
93
|
-
join_once?: boolean;
|
|
94
|
-
campaign?: string;
|
|
95
|
-
}
|
|
96
|
-
export interface ClientSidePublishCampaign {
|
|
97
|
-
name: string;
|
|
98
|
-
count?: number;
|
|
99
|
-
}
|
|
100
|
-
export declare type ClientSidePublishResponse = DistributionsPublicationsCreateResponse & {
|
|
101
|
-
vouchers_id?: string[];
|
|
102
|
-
};
|
|
103
|
-
export interface ClientSideTrackLoyalty {
|
|
104
|
-
code?: string;
|
|
105
|
-
}
|
|
106
|
-
export interface ClientSideTrackReferral {
|
|
107
|
-
code?: string;
|
|
108
|
-
}
|
|
109
|
-
export interface ClientSideTrackPayload {
|
|
110
|
-
event: string;
|
|
111
|
-
metadata?: Record<string, any>;
|
|
112
|
-
customer: CustomerRequest;
|
|
113
|
-
loyalty?: ClientSideTrackLoyalty;
|
|
114
|
-
referral?: ClientSideTrackReferral;
|
|
115
|
-
}
|
|
116
|
-
export interface ClientSideTrackResponse {
|
|
117
|
-
object: 'event';
|
|
118
|
-
type: string;
|
|
119
|
-
}
|
|
120
|
-
export declare type ClientSideRedeemOrder = Partial<Pick<OrdersCreateResponse, 'id' | 'source_id' | 'metadata' | 'amount'>> & {
|
|
121
|
-
items?: ClientSideItem[];
|
|
122
|
-
};
|
|
123
|
-
export interface ClientSideRedeemWidgetPayload {
|
|
124
|
-
order?: {
|
|
125
|
-
amount?: number;
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
export declare type ClientSideTrackCustomer = CustomerRequest;
|
|
129
|
-
export declare type ClientSideConsentsListResponse = ConsentsListResponse;
|
|
130
|
-
export declare type ClientSideValidationsValidateStackableParams = ValidationsValidateStackableParams;
|
|
131
|
-
export declare type ClientSideValidationValidateStackableResponse = ValidationValidateStackableResponse;
|
|
132
|
-
export declare type ClientSideRedemptionsRedeemStackableParams = RedemptionsRedeemStackableParams;
|
|
133
|
-
export declare type ClientSideRedemptionsRedeemStackableResponse = RedemptionsRedeemStackableResponse;
|
|
134
|
-
export {};
|
package/dist/types/Consents.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
interface ConsentGroup {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
description: string;
|
|
5
|
-
consents: string[];
|
|
6
|
-
created_at: string;
|
|
7
|
-
updated_at?: string;
|
|
8
|
-
object: 'consent_group';
|
|
9
|
-
}
|
|
10
|
-
export interface Consent {
|
|
11
|
-
id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
description: string;
|
|
14
|
-
category: string;
|
|
15
|
-
created_at: string;
|
|
16
|
-
updated_at?: string;
|
|
17
|
-
object: 'consent';
|
|
18
|
-
}
|
|
19
|
-
export interface ConsentsListResponse {
|
|
20
|
-
groups: {
|
|
21
|
-
object: 'list';
|
|
22
|
-
total: number;
|
|
23
|
-
data_ref: 'data';
|
|
24
|
-
data: ConsentGroup[];
|
|
25
|
-
};
|
|
26
|
-
consents: {
|
|
27
|
-
object: 'list';
|
|
28
|
-
total: number;
|
|
29
|
-
data_ref: 'data';
|
|
30
|
-
data: Consent[];
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export {};
|