@zernio/node 0.2.1477 → 0.2.1479
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/index.d.mts +23 -3
- package/dist/index.d.ts +23 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +23 -3
package/dist/index.d.mts
CHANGED
|
@@ -4204,16 +4204,24 @@ type AdRuleEvaluation = {
|
|
|
4204
4204
|
objects: Array<AdRuleObjectEvaluation>;
|
|
4205
4205
|
};
|
|
4206
4206
|
/**
|
|
4207
|
-
* Narrows the objects the rule checks. Every filter must hold.
|
|
4207
|
+
* Narrows the objects the rule checks. Every filter must hold. A campaign rule reads `name`, `campaign_id`, `goal` and `days_live`; an ad set rule also `campaign_name` and `adset_id`; an ad rule also `adset_name` and `ad_id`.
|
|
4208
4208
|
*/
|
|
4209
|
-
type AdRuleFilters = Array<{
|
|
4209
|
+
type AdRuleFilters = Array<({
|
|
4210
4210
|
/**
|
|
4211
4211
|
* The object's own name, its campaign's or ad set's name, or the campaign goal (objective) as the platform reports it.
|
|
4212
4212
|
*/
|
|
4213
4213
|
field: 'name' | 'campaign_name' | 'adset_name' | 'goal';
|
|
4214
4214
|
op: 'contains' | 'not_contains' | 'equals' | 'not_equals' | 'starts_with';
|
|
4215
4215
|
value: string;
|
|
4216
|
-
}
|
|
4216
|
+
} | {
|
|
4217
|
+
field: 'campaign_id' | 'adset_id' | 'ad_id';
|
|
4218
|
+
op: 'in' | 'not_in';
|
|
4219
|
+
values: Array<(string)>;
|
|
4220
|
+
} | {
|
|
4221
|
+
field: 'days_live';
|
|
4222
|
+
op: '>=' | '<';
|
|
4223
|
+
value: number;
|
|
4224
|
+
})>;
|
|
4217
4225
|
/**
|
|
4218
4226
|
* Whether the rule checks campaigns, ad sets or single ads. Each one is evaluated on its own.
|
|
4219
4227
|
*/
|
|
@@ -17818,6 +17826,10 @@ type TreasuryTopup = {
|
|
|
17818
17826
|
status?: 'pending' | 'succeeded' | 'failed' | 'expired';
|
|
17819
17827
|
createdAt?: string;
|
|
17820
17828
|
succeededAt?: (string) | null;
|
|
17829
|
+
/**
|
|
17830
|
+
* A Stripe invoice exists for this payment (Checkout payments). Every paid payment has a card receipt; see getTopupReceipt.
|
|
17831
|
+
*/
|
|
17832
|
+
hasInvoice?: boolean;
|
|
17821
17833
|
};
|
|
17822
17834
|
type method4 = 'card' | 'bank_transfer';
|
|
17823
17835
|
/**
|
|
@@ -25916,6 +25928,14 @@ type GetTopupReceiptData = {
|
|
|
25916
25928
|
type GetTopupReceiptResponse = ({
|
|
25917
25929
|
url: string;
|
|
25918
25930
|
format: 'pdf' | 'page';
|
|
25931
|
+
/**
|
|
25932
|
+
* The invoice PDF; null when the payment made no invoice.
|
|
25933
|
+
*/
|
|
25934
|
+
invoiceUrl?: (string) | null;
|
|
25935
|
+
/**
|
|
25936
|
+
* Stripe's card receipt page for the charge.
|
|
25937
|
+
*/
|
|
25938
|
+
receiptUrl?: (string) | null;
|
|
25919
25939
|
/**
|
|
25920
25940
|
* As in the top-up list.
|
|
25921
25941
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -4204,16 +4204,24 @@ type AdRuleEvaluation = {
|
|
|
4204
4204
|
objects: Array<AdRuleObjectEvaluation>;
|
|
4205
4205
|
};
|
|
4206
4206
|
/**
|
|
4207
|
-
* Narrows the objects the rule checks. Every filter must hold.
|
|
4207
|
+
* Narrows the objects the rule checks. Every filter must hold. A campaign rule reads `name`, `campaign_id`, `goal` and `days_live`; an ad set rule also `campaign_name` and `adset_id`; an ad rule also `adset_name` and `ad_id`.
|
|
4208
4208
|
*/
|
|
4209
|
-
type AdRuleFilters = Array<{
|
|
4209
|
+
type AdRuleFilters = Array<({
|
|
4210
4210
|
/**
|
|
4211
4211
|
* The object's own name, its campaign's or ad set's name, or the campaign goal (objective) as the platform reports it.
|
|
4212
4212
|
*/
|
|
4213
4213
|
field: 'name' | 'campaign_name' | 'adset_name' | 'goal';
|
|
4214
4214
|
op: 'contains' | 'not_contains' | 'equals' | 'not_equals' | 'starts_with';
|
|
4215
4215
|
value: string;
|
|
4216
|
-
}
|
|
4216
|
+
} | {
|
|
4217
|
+
field: 'campaign_id' | 'adset_id' | 'ad_id';
|
|
4218
|
+
op: 'in' | 'not_in';
|
|
4219
|
+
values: Array<(string)>;
|
|
4220
|
+
} | {
|
|
4221
|
+
field: 'days_live';
|
|
4222
|
+
op: '>=' | '<';
|
|
4223
|
+
value: number;
|
|
4224
|
+
})>;
|
|
4217
4225
|
/**
|
|
4218
4226
|
* Whether the rule checks campaigns, ad sets or single ads. Each one is evaluated on its own.
|
|
4219
4227
|
*/
|
|
@@ -17818,6 +17826,10 @@ type TreasuryTopup = {
|
|
|
17818
17826
|
status?: 'pending' | 'succeeded' | 'failed' | 'expired';
|
|
17819
17827
|
createdAt?: string;
|
|
17820
17828
|
succeededAt?: (string) | null;
|
|
17829
|
+
/**
|
|
17830
|
+
* A Stripe invoice exists for this payment (Checkout payments). Every paid payment has a card receipt; see getTopupReceipt.
|
|
17831
|
+
*/
|
|
17832
|
+
hasInvoice?: boolean;
|
|
17821
17833
|
};
|
|
17822
17834
|
type method4 = 'card' | 'bank_transfer';
|
|
17823
17835
|
/**
|
|
@@ -25916,6 +25928,14 @@ type GetTopupReceiptData = {
|
|
|
25916
25928
|
type GetTopupReceiptResponse = ({
|
|
25917
25929
|
url: string;
|
|
25918
25930
|
format: 'pdf' | 'page';
|
|
25931
|
+
/**
|
|
25932
|
+
* The invoice PDF; null when the payment made no invoice.
|
|
25933
|
+
*/
|
|
25934
|
+
invoiceUrl?: (string) | null;
|
|
25935
|
+
/**
|
|
25936
|
+
* Stripe's card receipt page for the charge.
|
|
25937
|
+
*/
|
|
25938
|
+
receiptUrl?: (string) | null;
|
|
25919
25939
|
/**
|
|
25920
25940
|
* As in the top-up list.
|
|
25921
25941
|
*/
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
36
36
|
// package.json
|
|
37
37
|
var package_default = {
|
|
38
38
|
name: "@zernio/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.1479",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "@zernio/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.1479",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
package/package.json
CHANGED
|
@@ -1991,16 +1991,24 @@ export type AdRuleEvaluation = {
|
|
|
1991
1991
|
};
|
|
1992
1992
|
|
|
1993
1993
|
/**
|
|
1994
|
-
* Narrows the objects the rule checks. Every filter must hold.
|
|
1994
|
+
* Narrows the objects the rule checks. Every filter must hold. A campaign rule reads `name`, `campaign_id`, `goal` and `days_live`; an ad set rule also `campaign_name` and `adset_id`; an ad rule also `adset_name` and `ad_id`.
|
|
1995
1995
|
*/
|
|
1996
|
-
export type AdRuleFilters = Array<{
|
|
1996
|
+
export type AdRuleFilters = Array<({
|
|
1997
1997
|
/**
|
|
1998
1998
|
* The object's own name, its campaign's or ad set's name, or the campaign goal (objective) as the platform reports it.
|
|
1999
1999
|
*/
|
|
2000
2000
|
field: 'name' | 'campaign_name' | 'adset_name' | 'goal';
|
|
2001
2001
|
op: 'contains' | 'not_contains' | 'equals' | 'not_equals' | 'starts_with';
|
|
2002
2002
|
value: string;
|
|
2003
|
-
}
|
|
2003
|
+
} | {
|
|
2004
|
+
field: 'campaign_id' | 'adset_id' | 'ad_id';
|
|
2005
|
+
op: 'in' | 'not_in';
|
|
2006
|
+
values: Array<(string)>;
|
|
2007
|
+
} | {
|
|
2008
|
+
field: 'days_live';
|
|
2009
|
+
op: '>=' | '<';
|
|
2010
|
+
value: number;
|
|
2011
|
+
})>;
|
|
2004
2012
|
|
|
2005
2013
|
/**
|
|
2006
2014
|
* Whether the rule checks campaigns, ad sets or single ads. Each one is evaluated on its own.
|
|
@@ -16229,6 +16237,10 @@ export type TreasuryTopup = {
|
|
|
16229
16237
|
status?: 'pending' | 'succeeded' | 'failed' | 'expired';
|
|
16230
16238
|
createdAt?: string;
|
|
16231
16239
|
succeededAt?: (string) | null;
|
|
16240
|
+
/**
|
|
16241
|
+
* A Stripe invoice exists for this payment (Checkout payments). Every paid payment has a card receipt; see getTopupReceipt.
|
|
16242
|
+
*/
|
|
16243
|
+
hasInvoice?: boolean;
|
|
16232
16244
|
};
|
|
16233
16245
|
|
|
16234
16246
|
export type method4 = 'card' | 'bank_transfer';
|
|
@@ -24707,6 +24719,14 @@ export type GetTopupReceiptData = {
|
|
|
24707
24719
|
export type GetTopupReceiptResponse = ({
|
|
24708
24720
|
url: string;
|
|
24709
24721
|
format: 'pdf' | 'page';
|
|
24722
|
+
/**
|
|
24723
|
+
* The invoice PDF; null when the payment made no invoice.
|
|
24724
|
+
*/
|
|
24725
|
+
invoiceUrl?: (string) | null;
|
|
24726
|
+
/**
|
|
24727
|
+
* Stripe's card receipt page for the charge.
|
|
24728
|
+
*/
|
|
24729
|
+
receiptUrl?: (string) | null;
|
|
24710
24730
|
/**
|
|
24711
24731
|
* As in the top-up list.
|
|
24712
24732
|
*/
|