@types/chartmogul-node 2.0.3 → 3.9.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.
- chartmogul-node/README.md +1 -1
- chartmogul-node/index.d.ts +62 -9
- chartmogul-node/package.json +4 -3
chartmogul-node/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for chartmogul-node (https://github.com/c
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chartmogul-node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Wed, 07 Jan 2026 11:02:02 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
chartmogul-node/index.d.ts
CHANGED
|
@@ -14,23 +14,48 @@ export namespace Ping {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export namespace DataSource {
|
|
17
|
+
type DataSourceStatus =
|
|
18
|
+
| "never_imported"
|
|
19
|
+
| "import_complete"
|
|
20
|
+
| "import_in_progress"
|
|
21
|
+
| "import_failed"
|
|
22
|
+
| string
|
|
23
|
+
| undefined;
|
|
24
|
+
|
|
25
|
+
interface ProcessingStatus {
|
|
26
|
+
processed?: number;
|
|
27
|
+
pending?: number;
|
|
28
|
+
failed?: number;
|
|
29
|
+
}
|
|
30
|
+
interface AutoChurnSubscriptionSetting {
|
|
31
|
+
enabled: boolean;
|
|
32
|
+
interval: number | null;
|
|
33
|
+
}
|
|
34
|
+
interface ExtraDataSourceParams {
|
|
35
|
+
with_processing_status?: boolean;
|
|
36
|
+
with_auto_churn_subscription_setting?: boolean;
|
|
37
|
+
with_invoice_handling_setting?: boolean;
|
|
38
|
+
}
|
|
39
|
+
interface ListDataSourcesParams extends ExtraDataSourceParams {
|
|
40
|
+
name?: string;
|
|
41
|
+
system?: string;
|
|
42
|
+
}
|
|
17
43
|
interface DataSource {
|
|
18
|
-
uuid?: string
|
|
44
|
+
uuid?: string;
|
|
19
45
|
name: string;
|
|
20
|
-
created_at?: string
|
|
21
|
-
status?:
|
|
22
|
-
system?: string
|
|
46
|
+
created_at?: string;
|
|
47
|
+
status?: DataSourceStatus;
|
|
48
|
+
system?: string;
|
|
49
|
+
processing_status?: ProcessingStatus;
|
|
50
|
+
auto_churn_subscription_setting?: AutoChurnSubscriptionSetting;
|
|
51
|
+
invoice_handling_setting?: Record<string, any>;
|
|
23
52
|
}
|
|
24
53
|
interface DataSources {
|
|
25
54
|
data_sources: DataSource[];
|
|
26
55
|
}
|
|
27
|
-
interface ListDataSourcesParams {
|
|
28
|
-
name?: string | undefined;
|
|
29
|
-
system?: string | undefined;
|
|
30
|
-
}
|
|
31
56
|
|
|
32
57
|
function create(config: Config, data: DataSource): Promise<DataSource>;
|
|
33
|
-
function retrieve(config: Config, uuid: string): Promise<DataSource>;
|
|
58
|
+
function retrieve(config: Config, uuid: string, params?: ExtraDataSourceParams): Promise<DataSource>;
|
|
34
59
|
function destroy(config: Config, uuid: string): Promise<{}>;
|
|
35
60
|
function all(config: Config, params?: ListDataSourcesParams): Promise<DataSources>;
|
|
36
61
|
}
|
|
@@ -129,6 +154,10 @@ export namespace Customer {
|
|
|
129
154
|
into: MergeID;
|
|
130
155
|
}
|
|
131
156
|
|
|
157
|
+
interface SubscriptionData {
|
|
158
|
+
subscriptions: Array<{ uuid: string; data_source_uuid?: string }>;
|
|
159
|
+
}
|
|
160
|
+
|
|
132
161
|
function create(config: Config, data: NewCustomer): Promise<Customer>;
|
|
133
162
|
function retrieve(config: Config, uuid: string): Promise<Customer>;
|
|
134
163
|
function modify(config: Config, uuid: string, data: UpdateCustomer): Promise<Customer>;
|
|
@@ -137,6 +166,14 @@ export namespace Customer {
|
|
|
137
166
|
function search(config: Config, params?: SearchCustomersParams): Promise<Entries<Customer>>;
|
|
138
167
|
function merge(config: Config, params?: MergeCustomersParams): Promise<{}>;
|
|
139
168
|
function attributes(config: Config, uuid: string): Promise<Attributes>;
|
|
169
|
+
/**
|
|
170
|
+
* @deprecated Use Metrics.Customer.connectSubscriptions instead
|
|
171
|
+
*/
|
|
172
|
+
function connectSubscriptions(config: Config, customerUuid: string, data: SubscriptionData): Promise<{}>;
|
|
173
|
+
/**
|
|
174
|
+
* @deprecated Use Metrics.Customer.disconnectSubscriptions instead
|
|
175
|
+
*/
|
|
176
|
+
function disconnectSubscriptions(config: Config, customerUuid: string, data: SubscriptionData): Promise<{}>;
|
|
140
177
|
}
|
|
141
178
|
|
|
142
179
|
export namespace Plan {
|
|
@@ -388,12 +425,28 @@ export namespace Metrics {
|
|
|
388
425
|
type: string;
|
|
389
426
|
}
|
|
390
427
|
|
|
428
|
+
interface SubscriptionConnectionData {
|
|
429
|
+
subscriptions: Array<{ uuid: string; data_source_uuid: string }>;
|
|
430
|
+
}
|
|
431
|
+
|
|
391
432
|
function subscriptions(
|
|
392
433
|
config: Config,
|
|
393
434
|
uuid: string,
|
|
394
435
|
params?: CursorParams,
|
|
395
436
|
): Promise<Entries<MetricsSubscription>>;
|
|
396
437
|
function activities(config: Config, uuid: string, params?: CursorParams): Promise<Entries<MetricsActivity>>;
|
|
438
|
+
function connectSubscriptions(
|
|
439
|
+
config: Config,
|
|
440
|
+
dataSourceUuid: string,
|
|
441
|
+
customerUuid: string,
|
|
442
|
+
data: SubscriptionConnectionData,
|
|
443
|
+
): Promise<{}>;
|
|
444
|
+
function disconnectSubscriptions(
|
|
445
|
+
config: Config,
|
|
446
|
+
dataSourceUuid: string,
|
|
447
|
+
customerUuid: string,
|
|
448
|
+
data: SubscriptionConnectionData,
|
|
449
|
+
): Promise<{}>;
|
|
397
450
|
}
|
|
398
451
|
}
|
|
399
452
|
|
chartmogul-node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/chartmogul-node",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.9.0",
|
|
4
4
|
"description": "TypeScript definitions for chartmogul-node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chartmogul-node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"scripts": {},
|
|
22
22
|
"dependencies": {},
|
|
23
|
-
"
|
|
24
|
-
"
|
|
23
|
+
"peerDependencies": {},
|
|
24
|
+
"typesPublisherContentHash": "0e60b2c701c2de3c16c73d58080555800e06ac72e709db5da801749ee7a008c5",
|
|
25
|
+
"typeScriptVersion": "5.2"
|
|
25
26
|
}
|