adapty 0.4.0 → 0.6.0-beta.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/README.md +37 -1
- package/dist/commands/asa/campaigns/bulk-create.d.ts +25 -0
- package/dist/commands/asa/campaigns/bulk-create.js +177 -0
- package/dist/commands/asa/campaigns/bulk-status.d.ts +15 -0
- package/dist/commands/asa/campaigns/bulk-status.js +26 -0
- package/dist/commands/asa/connect.js +2 -1
- package/dist/commands/auth/login.js +7 -5
- package/dist/commands/flows/config/get.d.ts +14 -0
- package/dist/commands/flows/config/get.js +25 -0
- package/dist/commands/flows/config/update.d.ts +21 -0
- package/dist/commands/flows/config/update.js +84 -0
- package/dist/commands/flows/create.d.ts +12 -0
- package/dist/commands/flows/create.js +22 -0
- package/dist/commands/flows/get.d.ts +14 -0
- package/dist/commands/flows/get.js +25 -0
- package/dist/commands/flows/list.d.ts +14 -0
- package/dist/commands/flows/list.js +20 -0
- package/dist/lib/api-client.d.ts +1 -0
- package/dist/lib/api-client.js +4 -1
- package/dist/lib/api-schemas.d.ts +28 -0
- package/dist/lib/asa-schemas.d.ts +40 -0
- package/oclif.manifest.json +1020 -592
- package/package.json +8 -1
|
@@ -73,6 +73,34 @@ export interface PaywallWriteRequestDTO {
|
|
|
73
73
|
product_ids?: string[];
|
|
74
74
|
title: string;
|
|
75
75
|
}
|
|
76
|
+
/** Flow lifecycle status. Values come from the server-side `FlowStatus` enum (e.g. draft, dirty, published). */
|
|
77
|
+
export type FlowStatus = string;
|
|
78
|
+
export interface FlowDTO {
|
|
79
|
+
id: string;
|
|
80
|
+
name: string;
|
|
81
|
+
status: FlowStatus;
|
|
82
|
+
updated_at: string;
|
|
83
|
+
}
|
|
84
|
+
export interface FlowRemoteConfigDTO {
|
|
85
|
+
data: string;
|
|
86
|
+
locale: string;
|
|
87
|
+
}
|
|
88
|
+
export interface FlowConfigDTO {
|
|
89
|
+
config: Record<string, unknown>;
|
|
90
|
+
remote_configs: FlowRemoteConfigDTO[];
|
|
91
|
+
status: FlowStatus;
|
|
92
|
+
/** Millisecond timestamp of the last content change; the value `expected_updated_at` is compared against on write. */
|
|
93
|
+
updated_at: number;
|
|
94
|
+
}
|
|
95
|
+
export interface FlowWriteRequestDTO {
|
|
96
|
+
name: string;
|
|
97
|
+
}
|
|
98
|
+
export interface FlowConfigWriteRequestDTO {
|
|
99
|
+
config: Record<string, unknown>;
|
|
100
|
+
/** Optimistic lock: the `updated_at` from a prior config read. Omit for last-write-wins. */
|
|
101
|
+
expected_updated_at?: null | number;
|
|
102
|
+
remote_configs?: FlowRemoteConfigDTO[];
|
|
103
|
+
}
|
|
76
104
|
export interface SegmentDTO {
|
|
77
105
|
description: null | string;
|
|
78
106
|
id: string;
|
|
@@ -285,3 +285,43 @@ export interface AsaNegativeKeywordMutationDTO {
|
|
|
285
285
|
export interface AsaAutomationMutationDTO {
|
|
286
286
|
automation: AsaAutomationDTO | null;
|
|
287
287
|
}
|
|
288
|
+
export type AsaBulkOperationStatus = 'failed' | 'partial' | 'pending' | 'running' | 'success';
|
|
289
|
+
export interface AsaBulkOperationAcceptedDTO {
|
|
290
|
+
operation_id: string;
|
|
291
|
+
}
|
|
292
|
+
export interface AsaBulkOperationCountsDTO {
|
|
293
|
+
applied: number;
|
|
294
|
+
failed: number;
|
|
295
|
+
pending: number;
|
|
296
|
+
total: number;
|
|
297
|
+
}
|
|
298
|
+
export interface AsaBulkOperationObjectDTO {
|
|
299
|
+
apple_error_code: null | string;
|
|
300
|
+
apple_error_message: null | string;
|
|
301
|
+
entity_kind: string;
|
|
302
|
+
external_id: null | number;
|
|
303
|
+
item_ref: string;
|
|
304
|
+
status: string;
|
|
305
|
+
step_type: string;
|
|
306
|
+
}
|
|
307
|
+
export interface AsaBulkOperationStateDTO {
|
|
308
|
+
counts: AsaBulkOperationCountsDTO;
|
|
309
|
+
created_at: string;
|
|
310
|
+
finished_at: null | string;
|
|
311
|
+
objects: AsaBulkOperationObjectDTO[];
|
|
312
|
+
operation_id: string;
|
|
313
|
+
pipelines: Record<string, unknown>[];
|
|
314
|
+
started_at: null | string;
|
|
315
|
+
status: AsaBulkOperationStatus;
|
|
316
|
+
}
|
|
317
|
+
export interface AsaTemplateIssueDTO {
|
|
318
|
+
column: null | string;
|
|
319
|
+
message: string;
|
|
320
|
+
row: null | number;
|
|
321
|
+
sheet: null | string;
|
|
322
|
+
}
|
|
323
|
+
export interface AsaBulkConvertResultDTO {
|
|
324
|
+
errors: AsaTemplateIssueDTO[];
|
|
325
|
+
request: null | Record<string, unknown>;
|
|
326
|
+
warnings: AsaTemplateIssueDTO[];
|
|
327
|
+
}
|