adapty 0.1.5 → 0.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/README.md +12 -4
- package/dist/commands/access-levels/create.d.ts +2 -1
- package/dist/commands/access-levels/create.js +3 -2
- package/dist/commands/access-levels/get.d.ts +2 -7
- package/dist/commands/access-levels/list.d.ts +2 -7
- package/dist/commands/access-levels/update.d.ts +2 -1
- package/dist/commands/access-levels/update.js +3 -2
- package/dist/commands/apps/create.d.ts +2 -1
- package/dist/commands/apps/create.js +1 -2
- package/dist/commands/apps/get.d.ts +2 -11
- package/dist/commands/apps/list.d.ts +2 -7
- package/dist/commands/apps/update.d.ts +2 -8
- package/dist/commands/paywalls/create.d.ts +2 -1
- package/dist/commands/paywalls/create.js +3 -2
- package/dist/commands/paywalls/get.d.ts +2 -7
- package/dist/commands/paywalls/list.d.ts +2 -6
- package/dist/commands/paywalls/placements.d.ts +18 -0
- package/dist/commands/paywalls/placements.js +25 -0
- package/dist/commands/paywalls/update.d.ts +2 -1
- package/dist/commands/paywalls/update.js +3 -2
- package/dist/commands/placements/create.d.ts +4 -2
- package/dist/commands/placements/create.js +29 -6
- package/dist/commands/placements/get.d.ts +2 -8
- package/dist/commands/placements/list.d.ts +2 -7
- package/dist/commands/placements/update.d.ts +4 -2
- package/dist/commands/placements/update.js +32 -6
- package/dist/commands/products/create.d.ts +2 -1
- package/dist/commands/products/create.js +9 -1
- package/dist/commands/products/get.d.ts +2 -9
- package/dist/commands/products/list.d.ts +2 -7
- package/dist/commands/products/update.d.ts +2 -1
- package/dist/commands/segments/get.d.ts +14 -0
- package/dist/commands/segments/get.js +25 -0
- package/dist/commands/segments/list.d.ts +14 -0
- package/dist/commands/segments/list.js +20 -0
- package/dist/lib/api-schemas.d.ts +99 -0
- package/dist/lib/api-schemas.js +7 -0
- package/oclif.manifest.json +284 -122
- package/package.json +4 -1
package/oclif.manifest.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
-
"
|
|
3
|
+
"access-levels:create": {
|
|
4
4
|
"aliases": [],
|
|
5
5
|
"args": {},
|
|
6
|
-
"description": "Create a
|
|
6
|
+
"description": "Create a custom access level",
|
|
7
7
|
"examples": [
|
|
8
|
-
"<%= config.bin %>
|
|
9
|
-
"<%= config.bin %> apps create --title \"My App\" --platform ios --platform android --apple-bundle-id com.example.app --google-bundle-id com.example.app"
|
|
8
|
+
"<%= config.bin %> access-levels create --app 550e8400-... --sdk-id vip --title \"VIP Access\""
|
|
10
9
|
],
|
|
11
10
|
"flags": {
|
|
12
11
|
"json": {
|
|
@@ -16,34 +15,24 @@
|
|
|
16
15
|
"allowNo": false,
|
|
17
16
|
"type": "boolean"
|
|
18
17
|
},
|
|
19
|
-
"
|
|
20
|
-
"description": "
|
|
21
|
-
"name": "
|
|
22
|
-
"
|
|
23
|
-
"multiple": false,
|
|
24
|
-
"type": "option"
|
|
25
|
-
},
|
|
26
|
-
"google-bundle-id": {
|
|
27
|
-
"description": "Google bundle ID (required with --platform android)",
|
|
28
|
-
"name": "google-bundle-id",
|
|
18
|
+
"app": {
|
|
19
|
+
"description": "App ID (UUID)",
|
|
20
|
+
"name": "app",
|
|
21
|
+
"required": true,
|
|
29
22
|
"hasDynamicHelp": false,
|
|
30
23
|
"multiple": false,
|
|
31
24
|
"type": "option"
|
|
32
25
|
},
|
|
33
|
-
"
|
|
34
|
-
"description": "
|
|
35
|
-
"name": "
|
|
26
|
+
"sdk-id": {
|
|
27
|
+
"description": "Access level SDK identifier",
|
|
28
|
+
"name": "sdk-id",
|
|
36
29
|
"required": true,
|
|
37
30
|
"hasDynamicHelp": false,
|
|
38
|
-
"multiple":
|
|
39
|
-
"options": [
|
|
40
|
-
"ios",
|
|
41
|
-
"android"
|
|
42
|
-
],
|
|
31
|
+
"multiple": false,
|
|
43
32
|
"type": "option"
|
|
44
33
|
},
|
|
45
34
|
"title": {
|
|
46
|
-
"description": "
|
|
35
|
+
"description": "Access level title",
|
|
47
36
|
"name": "title",
|
|
48
37
|
"required": true,
|
|
49
38
|
"hasDynamicHelp": false,
|
|
@@ -53,7 +42,7 @@
|
|
|
53
42
|
},
|
|
54
43
|
"hasDynamicHelp": false,
|
|
55
44
|
"hiddenAliases": [],
|
|
56
|
-
"id": "
|
|
45
|
+
"id": "access-levels:create",
|
|
57
46
|
"pluginAlias": "adapty",
|
|
58
47
|
"pluginName": "adapty",
|
|
59
48
|
"pluginType": "core",
|
|
@@ -63,22 +52,22 @@
|
|
|
63
52
|
"relativePath": [
|
|
64
53
|
"dist",
|
|
65
54
|
"commands",
|
|
66
|
-
"
|
|
55
|
+
"access-levels",
|
|
67
56
|
"create.js"
|
|
68
57
|
]
|
|
69
58
|
},
|
|
70
|
-
"
|
|
59
|
+
"access-levels:get": {
|
|
71
60
|
"aliases": [],
|
|
72
61
|
"args": {
|
|
73
|
-
"
|
|
74
|
-
"description": "
|
|
75
|
-
"name": "
|
|
62
|
+
"access_level_id": {
|
|
63
|
+
"description": "Access Level ID (UUID)",
|
|
64
|
+
"name": "access_level_id",
|
|
76
65
|
"required": true
|
|
77
66
|
}
|
|
78
67
|
},
|
|
79
|
-
"description": "Get
|
|
68
|
+
"description": "Get access level details",
|
|
80
69
|
"examples": [
|
|
81
|
-
"<%= config.bin %>
|
|
70
|
+
"<%= config.bin %> access-levels get --app UUID 550e8400-e29b-41d4-a716-446655440000"
|
|
82
71
|
],
|
|
83
72
|
"flags": {
|
|
84
73
|
"json": {
|
|
@@ -87,11 +76,19 @@
|
|
|
87
76
|
"name": "json",
|
|
88
77
|
"allowNo": false,
|
|
89
78
|
"type": "boolean"
|
|
79
|
+
},
|
|
80
|
+
"app": {
|
|
81
|
+
"description": "App ID (UUID)",
|
|
82
|
+
"name": "app",
|
|
83
|
+
"required": true,
|
|
84
|
+
"hasDynamicHelp": false,
|
|
85
|
+
"multiple": false,
|
|
86
|
+
"type": "option"
|
|
90
87
|
}
|
|
91
88
|
},
|
|
92
89
|
"hasDynamicHelp": false,
|
|
93
90
|
"hiddenAliases": [],
|
|
94
|
-
"id": "
|
|
91
|
+
"id": "access-levels:get",
|
|
95
92
|
"pluginAlias": "adapty",
|
|
96
93
|
"pluginName": "adapty",
|
|
97
94
|
"pluginType": "core",
|
|
@@ -101,17 +98,16 @@
|
|
|
101
98
|
"relativePath": [
|
|
102
99
|
"dist",
|
|
103
100
|
"commands",
|
|
104
|
-
"
|
|
101
|
+
"access-levels",
|
|
105
102
|
"get.js"
|
|
106
103
|
]
|
|
107
104
|
},
|
|
108
|
-
"
|
|
105
|
+
"access-levels:list": {
|
|
109
106
|
"aliases": [],
|
|
110
107
|
"args": {},
|
|
111
|
-
"description": "List
|
|
108
|
+
"description": "List access levels for an app",
|
|
112
109
|
"examples": [
|
|
113
|
-
"<%= config.bin %>
|
|
114
|
-
"<%= config.bin %> apps list --page 2 --page-size 10"
|
|
110
|
+
"<%= config.bin %> access-levels list --app 550e8400-e29b-41d4-a716-446655440000"
|
|
115
111
|
],
|
|
116
112
|
"flags": {
|
|
117
113
|
"json": {
|
|
@@ -121,6 +117,14 @@
|
|
|
121
117
|
"allowNo": false,
|
|
122
118
|
"type": "boolean"
|
|
123
119
|
},
|
|
120
|
+
"app": {
|
|
121
|
+
"description": "App ID (UUID)",
|
|
122
|
+
"name": "app",
|
|
123
|
+
"required": true,
|
|
124
|
+
"hasDynamicHelp": false,
|
|
125
|
+
"multiple": false,
|
|
126
|
+
"type": "option"
|
|
127
|
+
},
|
|
124
128
|
"page": {
|
|
125
129
|
"description": "Page number",
|
|
126
130
|
"name": "page",
|
|
@@ -140,7 +144,7 @@
|
|
|
140
144
|
},
|
|
141
145
|
"hasDynamicHelp": false,
|
|
142
146
|
"hiddenAliases": [],
|
|
143
|
-
"id": "
|
|
147
|
+
"id": "access-levels:list",
|
|
144
148
|
"pluginAlias": "adapty",
|
|
145
149
|
"pluginName": "adapty",
|
|
146
150
|
"pluginType": "core",
|
|
@@ -150,22 +154,22 @@
|
|
|
150
154
|
"relativePath": [
|
|
151
155
|
"dist",
|
|
152
156
|
"commands",
|
|
153
|
-
"
|
|
157
|
+
"access-levels",
|
|
154
158
|
"list.js"
|
|
155
159
|
]
|
|
156
160
|
},
|
|
157
|
-
"
|
|
161
|
+
"access-levels:update": {
|
|
158
162
|
"aliases": [],
|
|
159
163
|
"args": {
|
|
160
|
-
"
|
|
161
|
-
"description": "
|
|
162
|
-
"name": "
|
|
164
|
+
"access_level_id": {
|
|
165
|
+
"description": "Access Level ID (UUID)",
|
|
166
|
+
"name": "access_level_id",
|
|
163
167
|
"required": true
|
|
164
168
|
}
|
|
165
169
|
},
|
|
166
|
-
"description": "Update an
|
|
170
|
+
"description": "Update an access level",
|
|
167
171
|
"examples": [
|
|
168
|
-
"<%= config.bin %>
|
|
172
|
+
"<%= config.bin %> access-levels update --app UUID 550e8400-... --title \"VIP Access\""
|
|
169
173
|
],
|
|
170
174
|
"flags": {
|
|
171
175
|
"json": {
|
|
@@ -175,23 +179,18 @@
|
|
|
175
179
|
"allowNo": false,
|
|
176
180
|
"type": "boolean"
|
|
177
181
|
},
|
|
178
|
-
"
|
|
179
|
-
"description": "
|
|
180
|
-
"name": "
|
|
181
|
-
"
|
|
182
|
-
"multiple": false,
|
|
183
|
-
"type": "option"
|
|
184
|
-
},
|
|
185
|
-
"google-bundle-id": {
|
|
186
|
-
"description": "Google bundle ID",
|
|
187
|
-
"name": "google-bundle-id",
|
|
182
|
+
"app": {
|
|
183
|
+
"description": "App ID (UUID)",
|
|
184
|
+
"name": "app",
|
|
185
|
+
"required": true,
|
|
188
186
|
"hasDynamicHelp": false,
|
|
189
187
|
"multiple": false,
|
|
190
188
|
"type": "option"
|
|
191
189
|
},
|
|
192
190
|
"title": {
|
|
193
|
-
"description": "
|
|
191
|
+
"description": "Access level title",
|
|
194
192
|
"name": "title",
|
|
193
|
+
"required": true,
|
|
195
194
|
"hasDynamicHelp": false,
|
|
196
195
|
"multiple": false,
|
|
197
196
|
"type": "option"
|
|
@@ -199,7 +198,7 @@
|
|
|
199
198
|
},
|
|
200
199
|
"hasDynamicHelp": false,
|
|
201
200
|
"hiddenAliases": [],
|
|
202
|
-
"id": "
|
|
201
|
+
"id": "access-levels:update",
|
|
203
202
|
"pluginAlias": "adapty",
|
|
204
203
|
"pluginName": "adapty",
|
|
205
204
|
"pluginType": "core",
|
|
@@ -209,16 +208,17 @@
|
|
|
209
208
|
"relativePath": [
|
|
210
209
|
"dist",
|
|
211
210
|
"commands",
|
|
212
|
-
"
|
|
211
|
+
"access-levels",
|
|
213
212
|
"update.js"
|
|
214
213
|
]
|
|
215
214
|
},
|
|
216
|
-
"
|
|
215
|
+
"apps:create": {
|
|
217
216
|
"aliases": [],
|
|
218
217
|
"args": {},
|
|
219
|
-
"description": "Create a
|
|
218
|
+
"description": "Create a new Adapty app",
|
|
220
219
|
"examples": [
|
|
221
|
-
"<%= config.bin %>
|
|
220
|
+
"<%= config.bin %> apps create --title \"My App\" --platform ios --apple-bundle-id com.example.app",
|
|
221
|
+
"<%= config.bin %> apps create --title \"My App\" --platform ios --platform android --apple-bundle-id com.example.app --google-bundle-id com.example.app"
|
|
222
222
|
],
|
|
223
223
|
"flags": {
|
|
224
224
|
"json": {
|
|
@@ -228,24 +228,34 @@
|
|
|
228
228
|
"allowNo": false,
|
|
229
229
|
"type": "boolean"
|
|
230
230
|
},
|
|
231
|
-
"
|
|
232
|
-
"description": "
|
|
233
|
-
"name": "
|
|
234
|
-
"required": true,
|
|
231
|
+
"apple-bundle-id": {
|
|
232
|
+
"description": "Apple bundle ID (required with --platform ios)",
|
|
233
|
+
"name": "apple-bundle-id",
|
|
235
234
|
"hasDynamicHelp": false,
|
|
236
235
|
"multiple": false,
|
|
237
236
|
"type": "option"
|
|
238
237
|
},
|
|
239
|
-
"
|
|
240
|
-
"description": "
|
|
241
|
-
"name": "
|
|
242
|
-
"required": true,
|
|
238
|
+
"google-bundle-id": {
|
|
239
|
+
"description": "Google bundle ID (required with --platform android)",
|
|
240
|
+
"name": "google-bundle-id",
|
|
243
241
|
"hasDynamicHelp": false,
|
|
244
242
|
"multiple": false,
|
|
245
243
|
"type": "option"
|
|
246
244
|
},
|
|
245
|
+
"platform": {
|
|
246
|
+
"description": "Platform (ios, android). Repeat for multiple.",
|
|
247
|
+
"name": "platform",
|
|
248
|
+
"required": true,
|
|
249
|
+
"hasDynamicHelp": false,
|
|
250
|
+
"multiple": true,
|
|
251
|
+
"options": [
|
|
252
|
+
"ios",
|
|
253
|
+
"android"
|
|
254
|
+
],
|
|
255
|
+
"type": "option"
|
|
256
|
+
},
|
|
247
257
|
"title": {
|
|
248
|
-
"description": "
|
|
258
|
+
"description": "App title",
|
|
249
259
|
"name": "title",
|
|
250
260
|
"required": true,
|
|
251
261
|
"hasDynamicHelp": false,
|
|
@@ -255,7 +265,7 @@
|
|
|
255
265
|
},
|
|
256
266
|
"hasDynamicHelp": false,
|
|
257
267
|
"hiddenAliases": [],
|
|
258
|
-
"id": "
|
|
268
|
+
"id": "apps:create",
|
|
259
269
|
"pluginAlias": "adapty",
|
|
260
270
|
"pluginName": "adapty",
|
|
261
271
|
"pluginType": "core",
|
|
@@ -265,22 +275,22 @@
|
|
|
265
275
|
"relativePath": [
|
|
266
276
|
"dist",
|
|
267
277
|
"commands",
|
|
268
|
-
"
|
|
278
|
+
"apps",
|
|
269
279
|
"create.js"
|
|
270
280
|
]
|
|
271
281
|
},
|
|
272
|
-
"
|
|
282
|
+
"apps:get": {
|
|
273
283
|
"aliases": [],
|
|
274
284
|
"args": {
|
|
275
|
-
"
|
|
276
|
-
"description": "
|
|
277
|
-
"name": "
|
|
285
|
+
"app_id": {
|
|
286
|
+
"description": "App ID (UUID)",
|
|
287
|
+
"name": "app_id",
|
|
278
288
|
"required": true
|
|
279
289
|
}
|
|
280
290
|
},
|
|
281
|
-
"description": "Get
|
|
291
|
+
"description": "Get app details",
|
|
282
292
|
"examples": [
|
|
283
|
-
"<%= config.bin %>
|
|
293
|
+
"<%= config.bin %> apps get 550e8400-e29b-41d4-a716-446655440000"
|
|
284
294
|
],
|
|
285
295
|
"flags": {
|
|
286
296
|
"json": {
|
|
@@ -289,19 +299,11 @@
|
|
|
289
299
|
"name": "json",
|
|
290
300
|
"allowNo": false,
|
|
291
301
|
"type": "boolean"
|
|
292
|
-
},
|
|
293
|
-
"app": {
|
|
294
|
-
"description": "App ID (UUID)",
|
|
295
|
-
"name": "app",
|
|
296
|
-
"required": true,
|
|
297
|
-
"hasDynamicHelp": false,
|
|
298
|
-
"multiple": false,
|
|
299
|
-
"type": "option"
|
|
300
302
|
}
|
|
301
303
|
},
|
|
302
304
|
"hasDynamicHelp": false,
|
|
303
305
|
"hiddenAliases": [],
|
|
304
|
-
"id": "
|
|
306
|
+
"id": "apps:get",
|
|
305
307
|
"pluginAlias": "adapty",
|
|
306
308
|
"pluginName": "adapty",
|
|
307
309
|
"pluginType": "core",
|
|
@@ -311,16 +313,17 @@
|
|
|
311
313
|
"relativePath": [
|
|
312
314
|
"dist",
|
|
313
315
|
"commands",
|
|
314
|
-
"
|
|
316
|
+
"apps",
|
|
315
317
|
"get.js"
|
|
316
318
|
]
|
|
317
319
|
},
|
|
318
|
-
"
|
|
320
|
+
"apps:list": {
|
|
319
321
|
"aliases": [],
|
|
320
322
|
"args": {},
|
|
321
|
-
"description": "List
|
|
323
|
+
"description": "List Adapty apps",
|
|
322
324
|
"examples": [
|
|
323
|
-
"<%= config.bin %>
|
|
325
|
+
"<%= config.bin %> apps list",
|
|
326
|
+
"<%= config.bin %> apps list --page 2 --page-size 10"
|
|
324
327
|
],
|
|
325
328
|
"flags": {
|
|
326
329
|
"json": {
|
|
@@ -330,14 +333,6 @@
|
|
|
330
333
|
"allowNo": false,
|
|
331
334
|
"type": "boolean"
|
|
332
335
|
},
|
|
333
|
-
"app": {
|
|
334
|
-
"description": "App ID (UUID)",
|
|
335
|
-
"name": "app",
|
|
336
|
-
"required": true,
|
|
337
|
-
"hasDynamicHelp": false,
|
|
338
|
-
"multiple": false,
|
|
339
|
-
"type": "option"
|
|
340
|
-
},
|
|
341
336
|
"page": {
|
|
342
337
|
"description": "Page number",
|
|
343
338
|
"name": "page",
|
|
@@ -357,7 +352,7 @@
|
|
|
357
352
|
},
|
|
358
353
|
"hasDynamicHelp": false,
|
|
359
354
|
"hiddenAliases": [],
|
|
360
|
-
"id": "
|
|
355
|
+
"id": "apps:list",
|
|
361
356
|
"pluginAlias": "adapty",
|
|
362
357
|
"pluginName": "adapty",
|
|
363
358
|
"pluginType": "core",
|
|
@@ -367,22 +362,22 @@
|
|
|
367
362
|
"relativePath": [
|
|
368
363
|
"dist",
|
|
369
364
|
"commands",
|
|
370
|
-
"
|
|
365
|
+
"apps",
|
|
371
366
|
"list.js"
|
|
372
367
|
]
|
|
373
368
|
},
|
|
374
|
-
"
|
|
369
|
+
"apps:update": {
|
|
375
370
|
"aliases": [],
|
|
376
371
|
"args": {
|
|
377
|
-
"
|
|
378
|
-
"description": "
|
|
379
|
-
"name": "
|
|
372
|
+
"app_id": {
|
|
373
|
+
"description": "App ID (UUID)",
|
|
374
|
+
"name": "app_id",
|
|
380
375
|
"required": true
|
|
381
376
|
}
|
|
382
377
|
},
|
|
383
|
-
"description": "Update an
|
|
378
|
+
"description": "Update an app",
|
|
384
379
|
"examples": [
|
|
385
|
-
"<%= config.bin %>
|
|
380
|
+
"<%= config.bin %> apps update 550e8400-... --title \"My App\""
|
|
386
381
|
],
|
|
387
382
|
"flags": {
|
|
388
383
|
"json": {
|
|
@@ -392,18 +387,23 @@
|
|
|
392
387
|
"allowNo": false,
|
|
393
388
|
"type": "boolean"
|
|
394
389
|
},
|
|
395
|
-
"
|
|
396
|
-
"description": "
|
|
397
|
-
"name": "
|
|
398
|
-
"
|
|
390
|
+
"apple-bundle-id": {
|
|
391
|
+
"description": "Apple bundle ID",
|
|
392
|
+
"name": "apple-bundle-id",
|
|
393
|
+
"hasDynamicHelp": false,
|
|
394
|
+
"multiple": false,
|
|
395
|
+
"type": "option"
|
|
396
|
+
},
|
|
397
|
+
"google-bundle-id": {
|
|
398
|
+
"description": "Google bundle ID",
|
|
399
|
+
"name": "google-bundle-id",
|
|
399
400
|
"hasDynamicHelp": false,
|
|
400
401
|
"multiple": false,
|
|
401
402
|
"type": "option"
|
|
402
403
|
},
|
|
403
404
|
"title": {
|
|
404
|
-
"description": "
|
|
405
|
+
"description": "App title",
|
|
405
406
|
"name": "title",
|
|
406
|
-
"required": true,
|
|
407
407
|
"hasDynamicHelp": false,
|
|
408
408
|
"multiple": false,
|
|
409
409
|
"type": "option"
|
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
},
|
|
412
412
|
"hasDynamicHelp": false,
|
|
413
413
|
"hiddenAliases": [],
|
|
414
|
-
"id": "
|
|
414
|
+
"id": "apps:update",
|
|
415
415
|
"pluginAlias": "adapty",
|
|
416
416
|
"pluginName": "adapty",
|
|
417
417
|
"pluginType": "core",
|
|
@@ -421,7 +421,7 @@
|
|
|
421
421
|
"relativePath": [
|
|
422
422
|
"dist",
|
|
423
423
|
"commands",
|
|
424
|
-
"
|
|
424
|
+
"apps",
|
|
425
425
|
"update.js"
|
|
426
426
|
]
|
|
427
427
|
},
|
|
@@ -735,6 +735,52 @@
|
|
|
735
735
|
"list.js"
|
|
736
736
|
]
|
|
737
737
|
},
|
|
738
|
+
"paywalls:placements": {
|
|
739
|
+
"aliases": [],
|
|
740
|
+
"args": {
|
|
741
|
+
"paywall_id": {
|
|
742
|
+
"description": "Paywall ID (UUID)",
|
|
743
|
+
"name": "paywall_id",
|
|
744
|
+
"required": true
|
|
745
|
+
}
|
|
746
|
+
},
|
|
747
|
+
"description": "List placements that currently use this paywall",
|
|
748
|
+
"examples": [
|
|
749
|
+
"<%= config.bin %> paywalls placements --app UUID 770e8400-e29b-41d4-a716-446655440002"
|
|
750
|
+
],
|
|
751
|
+
"flags": {
|
|
752
|
+
"json": {
|
|
753
|
+
"description": "Format output as json.",
|
|
754
|
+
"helpGroup": "GLOBAL",
|
|
755
|
+
"name": "json",
|
|
756
|
+
"allowNo": false,
|
|
757
|
+
"type": "boolean"
|
|
758
|
+
},
|
|
759
|
+
"app": {
|
|
760
|
+
"description": "App ID (UUID)",
|
|
761
|
+
"name": "app",
|
|
762
|
+
"required": true,
|
|
763
|
+
"hasDynamicHelp": false,
|
|
764
|
+
"multiple": false,
|
|
765
|
+
"type": "option"
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
"hasDynamicHelp": false,
|
|
769
|
+
"hiddenAliases": [],
|
|
770
|
+
"id": "paywalls:placements",
|
|
771
|
+
"pluginAlias": "adapty",
|
|
772
|
+
"pluginName": "adapty",
|
|
773
|
+
"pluginType": "core",
|
|
774
|
+
"strict": true,
|
|
775
|
+
"enableJsonFlag": true,
|
|
776
|
+
"isESM": true,
|
|
777
|
+
"relativePath": [
|
|
778
|
+
"dist",
|
|
779
|
+
"commands",
|
|
780
|
+
"paywalls",
|
|
781
|
+
"placements.js"
|
|
782
|
+
]
|
|
783
|
+
},
|
|
738
784
|
"paywalls:update": {
|
|
739
785
|
"aliases": [],
|
|
740
786
|
"args": {
|
|
@@ -802,7 +848,8 @@
|
|
|
802
848
|
"args": {},
|
|
803
849
|
"description": "Create a placement with a paywall",
|
|
804
850
|
"examples": [
|
|
805
|
-
"<%= config.bin %> placements create --app UUID --title \"Default\" --developer-id default --
|
|
851
|
+
"<%= config.bin %> placements create --app UUID --title \"Default\" --developer-id default --audiences '[{\"segment_ids\":[],\"paywall_id\":\"PAYWALL_UUID\",\"priority\":0}]'",
|
|
852
|
+
"<%= config.bin %> placements create --app UUID --title \"Default\" --developer-id default --paywall-id PAYWALL_UUID"
|
|
806
853
|
],
|
|
807
854
|
"flags": {
|
|
808
855
|
"json": {
|
|
@@ -820,6 +867,13 @@
|
|
|
820
867
|
"multiple": false,
|
|
821
868
|
"type": "option"
|
|
822
869
|
},
|
|
870
|
+
"audiences": {
|
|
871
|
+
"description": "JSON array of audience entries: [{segment_ids, paywall_id, priority}]",
|
|
872
|
+
"name": "audiences",
|
|
873
|
+
"hasDynamicHelp": false,
|
|
874
|
+
"multiple": false,
|
|
875
|
+
"type": "option"
|
|
876
|
+
},
|
|
823
877
|
"developer-id": {
|
|
824
878
|
"description": "Developer ID for the placement",
|
|
825
879
|
"name": "developer-id",
|
|
@@ -829,9 +883,8 @@
|
|
|
829
883
|
"type": "option"
|
|
830
884
|
},
|
|
831
885
|
"paywall-id": {
|
|
832
|
-
"description": "Paywall ID (UUID)",
|
|
886
|
+
"description": "Paywall ID (UUID). DEPRECATED: use --audiences.",
|
|
833
887
|
"name": "paywall-id",
|
|
834
|
-
"required": true,
|
|
835
888
|
"hasDynamicHelp": false,
|
|
836
889
|
"multiple": false,
|
|
837
890
|
"type": "option"
|
|
@@ -974,7 +1027,8 @@
|
|
|
974
1027
|
},
|
|
975
1028
|
"description": "Update a placement",
|
|
976
1029
|
"examples": [
|
|
977
|
-
"<%= config.bin %> placements update --app UUID 550e8400-... --title \"Default\" --developer-id default --
|
|
1030
|
+
"<%= config.bin %> placements update --app UUID 550e8400-... --title \"Default\" --developer-id default --audiences '[{\"segment_ids\":[],\"paywall_id\":\"PAYWALL_UUID\",\"priority\":0}]'",
|
|
1031
|
+
"<%= config.bin %> placements update --app UUID 550e8400-... --title \"Default\" --developer-id default --paywall-id PAYWALL_UUID"
|
|
978
1032
|
],
|
|
979
1033
|
"flags": {
|
|
980
1034
|
"json": {
|
|
@@ -992,6 +1046,13 @@
|
|
|
992
1046
|
"multiple": false,
|
|
993
1047
|
"type": "option"
|
|
994
1048
|
},
|
|
1049
|
+
"audiences": {
|
|
1050
|
+
"description": "JSON array of audience entries: [{segment_ids, paywall_id, priority}]",
|
|
1051
|
+
"name": "audiences",
|
|
1052
|
+
"hasDynamicHelp": false,
|
|
1053
|
+
"multiple": false,
|
|
1054
|
+
"type": "option"
|
|
1055
|
+
},
|
|
995
1056
|
"developer-id": {
|
|
996
1057
|
"description": "Developer ID for the placement",
|
|
997
1058
|
"name": "developer-id",
|
|
@@ -1001,9 +1062,8 @@
|
|
|
1001
1062
|
"type": "option"
|
|
1002
1063
|
},
|
|
1003
1064
|
"paywall-id": {
|
|
1004
|
-
"description": "Paywall ID (UUID)",
|
|
1065
|
+
"description": "Paywall ID (UUID). DEPRECATED: use --audiences.",
|
|
1005
1066
|
"name": "paywall-id",
|
|
1006
|
-
"required": true,
|
|
1007
1067
|
"hasDynamicHelp": false,
|
|
1008
1068
|
"multiple": false,
|
|
1009
1069
|
"type": "option"
|
|
@@ -1281,7 +1341,109 @@
|
|
|
1281
1341
|
"products",
|
|
1282
1342
|
"update.js"
|
|
1283
1343
|
]
|
|
1344
|
+
},
|
|
1345
|
+
"segments:get": {
|
|
1346
|
+
"aliases": [],
|
|
1347
|
+
"args": {
|
|
1348
|
+
"segment_id": {
|
|
1349
|
+
"description": "Segment ID (UUID)",
|
|
1350
|
+
"name": "segment_id",
|
|
1351
|
+
"required": true
|
|
1352
|
+
}
|
|
1353
|
+
},
|
|
1354
|
+
"description": "Get segment details",
|
|
1355
|
+
"examples": [
|
|
1356
|
+
"<%= config.bin %> segments get --app UUID 550e8400-e29b-41d4-a716-446655440000"
|
|
1357
|
+
],
|
|
1358
|
+
"flags": {
|
|
1359
|
+
"json": {
|
|
1360
|
+
"description": "Format output as json.",
|
|
1361
|
+
"helpGroup": "GLOBAL",
|
|
1362
|
+
"name": "json",
|
|
1363
|
+
"allowNo": false,
|
|
1364
|
+
"type": "boolean"
|
|
1365
|
+
},
|
|
1366
|
+
"app": {
|
|
1367
|
+
"description": "App ID (UUID)",
|
|
1368
|
+
"name": "app",
|
|
1369
|
+
"required": true,
|
|
1370
|
+
"hasDynamicHelp": false,
|
|
1371
|
+
"multiple": false,
|
|
1372
|
+
"type": "option"
|
|
1373
|
+
}
|
|
1374
|
+
},
|
|
1375
|
+
"hasDynamicHelp": false,
|
|
1376
|
+
"hiddenAliases": [],
|
|
1377
|
+
"id": "segments:get",
|
|
1378
|
+
"pluginAlias": "adapty",
|
|
1379
|
+
"pluginName": "adapty",
|
|
1380
|
+
"pluginType": "core",
|
|
1381
|
+
"strict": true,
|
|
1382
|
+
"enableJsonFlag": true,
|
|
1383
|
+
"isESM": true,
|
|
1384
|
+
"relativePath": [
|
|
1385
|
+
"dist",
|
|
1386
|
+
"commands",
|
|
1387
|
+
"segments",
|
|
1388
|
+
"get.js"
|
|
1389
|
+
]
|
|
1390
|
+
},
|
|
1391
|
+
"segments:list": {
|
|
1392
|
+
"aliases": [],
|
|
1393
|
+
"args": {},
|
|
1394
|
+
"description": "List segments for an app",
|
|
1395
|
+
"examples": [
|
|
1396
|
+
"<%= config.bin %> segments list --app 550e8400-..."
|
|
1397
|
+
],
|
|
1398
|
+
"flags": {
|
|
1399
|
+
"json": {
|
|
1400
|
+
"description": "Format output as json.",
|
|
1401
|
+
"helpGroup": "GLOBAL",
|
|
1402
|
+
"name": "json",
|
|
1403
|
+
"allowNo": false,
|
|
1404
|
+
"type": "boolean"
|
|
1405
|
+
},
|
|
1406
|
+
"app": {
|
|
1407
|
+
"description": "App ID (UUID)",
|
|
1408
|
+
"name": "app",
|
|
1409
|
+
"required": true,
|
|
1410
|
+
"hasDynamicHelp": false,
|
|
1411
|
+
"multiple": false,
|
|
1412
|
+
"type": "option"
|
|
1413
|
+
},
|
|
1414
|
+
"page": {
|
|
1415
|
+
"description": "Page number",
|
|
1416
|
+
"name": "page",
|
|
1417
|
+
"default": 1,
|
|
1418
|
+
"hasDynamicHelp": false,
|
|
1419
|
+
"multiple": false,
|
|
1420
|
+
"type": "option"
|
|
1421
|
+
},
|
|
1422
|
+
"page-size": {
|
|
1423
|
+
"description": "Items per page (max 100)",
|
|
1424
|
+
"name": "page-size",
|
|
1425
|
+
"default": 20,
|
|
1426
|
+
"hasDynamicHelp": false,
|
|
1427
|
+
"multiple": false,
|
|
1428
|
+
"type": "option"
|
|
1429
|
+
}
|
|
1430
|
+
},
|
|
1431
|
+
"hasDynamicHelp": false,
|
|
1432
|
+
"hiddenAliases": [],
|
|
1433
|
+
"id": "segments:list",
|
|
1434
|
+
"pluginAlias": "adapty",
|
|
1435
|
+
"pluginName": "adapty",
|
|
1436
|
+
"pluginType": "core",
|
|
1437
|
+
"strict": true,
|
|
1438
|
+
"enableJsonFlag": true,
|
|
1439
|
+
"isESM": true,
|
|
1440
|
+
"relativePath": [
|
|
1441
|
+
"dist",
|
|
1442
|
+
"commands",
|
|
1443
|
+
"segments",
|
|
1444
|
+
"list.js"
|
|
1445
|
+
]
|
|
1284
1446
|
}
|
|
1285
1447
|
},
|
|
1286
|
-
"version": "0.
|
|
1448
|
+
"version": "0.2.0"
|
|
1287
1449
|
}
|