@omni-commerce/cli 0.20.0 → 0.21.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/dist/index.js CHANGED
@@ -84,7 +84,7 @@ async function openBrowser(url) {
84
84
  }
85
85
 
86
86
  // src/version.ts
87
- var CLI_VERSION = "0.20.0";
87
+ var CLI_VERSION = "0.21.0";
88
88
 
89
89
  // src/browser-login.ts
90
90
  function loginOrigin(baseUrl) {
@@ -5702,7 +5702,7 @@ var COMMANDS = [
5702
5702
  httpMethod: "GET",
5703
5703
  path: "/api/v1/wiki/export",
5704
5704
  summary: "Export Wiki",
5705
- description: "Export every active General page as a markdown file with YAML front matter, and the glossary (titles, aliases, related pages) as SKOS in JSON-LD. Requires documents:read.",
5705
+ description: "Export active General pages as an OKF v0.3 bundle. Imported paths, frontmatter, and supporting files are preserved. The glossary is returned separately as SKOS in JSON-LD. Requires documents:read.",
5706
5706
  flags: [
5707
5707
  {
5708
5708
  name: "organizationId",
@@ -5722,7 +5722,7 @@ var COMMANDS = [
5722
5722
  httpMethod: "POST",
5723
5723
  path: "/api/v1/wiki/import",
5724
5724
  summary: "Import Wiki",
5725
- description: "Create or update General pages from markdown files. Requires documents:write. Front matter may set title, summary, aliases, hiddenLabels, appliesTo and reviewBy; without front matter the first # heading is the title.\n\nDefinitions from older exports are imported into the page body.\n\nA file updates the page that already holds its title and otherwise creates one, so importing an export is idempotent. Each file is saved on its own and reported separately.",
5725
+ description: "Create or update General pages from an OKF v0.3 bundle. Requires documents:write. Send the files array returned by the export. Use markdown for UTF-8 text files and base64 for binary assets. Bundle-relative links resolve to pages in the destination organization.\n\nConcepts can update a General page by its local page ID, imported path, or matching title. Re-importing the same export is idempotent. Valid concepts and supporting files are saved in one transaction, with an outcome per concept. Standalone Markdown and earlier exports are also accepted.",
5726
5726
  flags: [],
5727
5727
  acceptsJsonBody: true,
5728
5728
  acceptsFile: false,
@@ -6152,51 +6152,51 @@ var COMMANDS = [
6152
6152
 
6153
6153
  // src/generated/campaign-inputs.ts
6154
6154
  var CAMPAIGN_INPUTS = {
6155
- patch: {
6156
- type: "object",
6157
- properties: {
6158
- expectedRevision: {
6159
- type: "integer",
6160
- exclusiveMinimum: 0,
6161
- maximum: 9007199254740991
6162
- },
6163
- name: {
6164
- type: "string",
6165
- minLength: 2,
6166
- maxLength: 160
6167
- },
6168
- objective: {
6169
- type: "string",
6170
- maxLength: 8e3
6171
- },
6172
- brand: {
6173
- type: "string",
6174
- maxLength: 160
6175
- },
6176
- ownerId: {
6177
- type: "string",
6178
- minLength: 1,
6179
- maxLength: 160,
6180
- description: "Organization member ID or eligible oauth:<clientId> actor from campaign options."
6181
- },
6182
- approverId: {
6183
- type: "string",
6184
- minLength: 1,
6185
- maxLength: 160,
6186
- description: "Explicit named approver: organization member ID or eligible oauth:<clientId> actor from campaign options. Other users and API clients cannot approve on this actor's behalf."
6187
- },
6188
- timezone: {
6189
- type: "string"
6190
- },
6191
- stores: {
6192
- maxItems: 100,
6193
- type: "array",
6194
- items: {
6195
- type: "object",
6196
- properties: {
6197
- marketplace: {
6198
- type: "string",
6199
- enum: [
6155
+ "patch": {
6156
+ "type": "object",
6157
+ "properties": {
6158
+ "expectedRevision": {
6159
+ "type": "integer",
6160
+ "exclusiveMinimum": 0,
6161
+ "maximum": 9007199254740991
6162
+ },
6163
+ "name": {
6164
+ "type": "string",
6165
+ "minLength": 2,
6166
+ "maxLength": 160
6167
+ },
6168
+ "objective": {
6169
+ "type": "string",
6170
+ "maxLength": 8e3
6171
+ },
6172
+ "brand": {
6173
+ "type": "string",
6174
+ "maxLength": 160
6175
+ },
6176
+ "ownerId": {
6177
+ "type": "string",
6178
+ "minLength": 1,
6179
+ "maxLength": 160,
6180
+ "description": "Organization member ID or eligible oauth:<clientId> actor from campaign options."
6181
+ },
6182
+ "approverId": {
6183
+ "type": "string",
6184
+ "minLength": 1,
6185
+ "maxLength": 160,
6186
+ "description": "Explicit named approver: organization member ID or eligible oauth:<clientId> actor from campaign options. Other users and API clients cannot approve on this actor's behalf."
6187
+ },
6188
+ "timezone": {
6189
+ "type": "string"
6190
+ },
6191
+ "stores": {
6192
+ "maxItems": 100,
6193
+ "type": "array",
6194
+ "items": {
6195
+ "type": "object",
6196
+ "properties": {
6197
+ "marketplace": {
6198
+ "type": "string",
6199
+ "enum": [
6200
6200
  "shopee",
6201
6201
  "lazada",
6202
6202
  "tiktok",
@@ -6207,57 +6207,65 @@ var CAMPAIGN_INPUTS = {
6207
6207
  "ebay"
6208
6208
  ]
6209
6209
  },
6210
- country: {
6211
- type: "string",
6212
- minLength: 1,
6213
- maxLength: 80
6210
+ "country": {
6211
+ "type": "string",
6212
+ "minLength": 1,
6213
+ "maxLength": 80
6214
6214
  },
6215
- storeId: {
6216
- type: "string",
6217
- minLength: 1,
6218
- maxLength: 160
6215
+ "storeId": {
6216
+ "type": "string",
6217
+ "minLength": 1,
6218
+ "maxLength": 160
6219
6219
  }
6220
6220
  },
6221
- required: ["marketplace", "country", "storeId"],
6222
- additionalProperties: false
6221
+ "required": [
6222
+ "marketplace",
6223
+ "country",
6224
+ "storeId"
6225
+ ],
6226
+ "additionalProperties": false
6223
6227
  }
6224
6228
  },
6225
- serviceRequest: {
6226
- type: "string",
6227
- maxLength: 300
6228
- },
6229
- priority: {
6230
- type: "string",
6231
- enum: ["standard", "priority", "super_priority"]
6232
- },
6233
- documentIds: {
6234
- maxItems: 100,
6235
- type: "array",
6236
- items: {
6237
- type: "string",
6238
- minLength: 1,
6239
- maxLength: 160
6229
+ "serviceRequest": {
6230
+ "type": "string",
6231
+ "maxLength": 300
6232
+ },
6233
+ "priority": {
6234
+ "type": "string",
6235
+ "enum": [
6236
+ "standard",
6237
+ "priority",
6238
+ "super_priority"
6239
+ ]
6240
+ },
6241
+ "documentIds": {
6242
+ "maxItems": 100,
6243
+ "type": "array",
6244
+ "items": {
6245
+ "type": "string",
6246
+ "minLength": 1,
6247
+ "maxLength": 160
6240
6248
  }
6241
6249
  },
6242
- reviewDueAt: {
6243
- anyOf: [
6250
+ "reviewDueAt": {
6251
+ "anyOf": [
6244
6252
  {
6245
- type: "string",
6246
- format: "date-time",
6247
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
6253
+ "type": "string",
6254
+ "format": "date-time",
6255
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
6248
6256
  },
6249
6257
  {
6250
- type: "null"
6258
+ "type": "null"
6251
6259
  }
6252
6260
  ]
6253
6261
  },
6254
- sourceCurrency: {
6255
- type: "string",
6256
- pattern: "^[A-Z]{3}$"
6262
+ "sourceCurrency": {
6263
+ "type": "string",
6264
+ "pattern": "^[A-Z]{3}$"
6257
6265
  },
6258
- sourceMarketplace: {
6259
- type: "string",
6260
- enum: [
6266
+ "sourceMarketplace": {
6267
+ "type": "string",
6268
+ "enum": [
6261
6269
  "shopee",
6262
6270
  "lazada",
6263
6271
  "tiktok",
@@ -6268,78 +6276,81 @@ var CAMPAIGN_INPUTS = {
6268
6276
  "ebay"
6269
6277
  ]
6270
6278
  },
6271
- sourceCountry: {
6272
- type: "string",
6273
- maxLength: 80
6274
- },
6275
- syncMode: {
6276
- type: "string",
6277
- enum: ["offer_windows", "campaign_start"]
6279
+ "sourceCountry": {
6280
+ "type": "string",
6281
+ "maxLength": 80
6278
6282
  },
6279
- cleanupNotes: {
6280
- type: "string",
6281
- maxLength: 8e3
6283
+ "syncMode": {
6284
+ "type": "string",
6285
+ "enum": [
6286
+ "offer_windows",
6287
+ "campaign_start"
6288
+ ]
6282
6289
  },
6283
- offers: {
6284
- description: "Add or update promotions by stable offer id. Existing IDs patch only supplied fields; new IDs require windowId and promotion terms. Omitted offers stay unchanged.",
6285
- maxItems: 500,
6286
- type: "array",
6287
- items: {
6288
- type: "object",
6289
- properties: {
6290
- id: {
6291
- type: "string",
6292
- minLength: 1,
6293
- maxLength: 160
6290
+ "cleanupNotes": {
6291
+ "type": "string",
6292
+ "maxLength": 8e3
6293
+ },
6294
+ "offers": {
6295
+ "description": "Add or update promotions by stable offer id. Existing IDs patch only supplied fields; new IDs require windowId and promotion terms. Omitted offers stay unchanged.",
6296
+ "maxItems": 500,
6297
+ "type": "array",
6298
+ "items": {
6299
+ "type": "object",
6300
+ "properties": {
6301
+ "id": {
6302
+ "type": "string",
6303
+ "minLength": 1,
6304
+ "maxLength": 160
6294
6305
  },
6295
- windowId: {
6296
- type: "string",
6297
- minLength: 1,
6298
- maxLength: 160
6306
+ "windowId": {
6307
+ "type": "string",
6308
+ "minLength": 1,
6309
+ "maxLength": 160
6299
6310
  },
6300
- promotionId: {
6301
- description: "Existing draft promotion attached to this window; the campaign controls its live dates.",
6302
- type: "string",
6303
- format: "uuid",
6304
- pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
6311
+ "promotionId": {
6312
+ "description": "Existing draft promotion attached to this window; the campaign controls its live dates.",
6313
+ "type": "string",
6314
+ "format": "uuid",
6315
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
6305
6316
  },
6306
- productIds: {
6307
- maxItems: 200,
6308
- type: "array",
6309
- items: {
6310
- type: "string",
6311
- format: "uuid",
6312
- pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
6317
+ "productIds": {
6318
+ "maxItems": 200,
6319
+ "type": "array",
6320
+ "items": {
6321
+ "type": "string",
6322
+ "format": "uuid",
6323
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
6313
6324
  }
6314
6325
  },
6315
- reviewNotes: {
6316
- type: "string",
6317
- maxLength: 8e3
6326
+ "reviewNotes": {
6327
+ "type": "string",
6328
+ "maxLength": 8e3
6318
6329
  },
6319
- excludedReason: {
6320
- type: "string",
6321
- maxLength: 2e3
6330
+ "excludedReason": {
6331
+ "type": "string",
6332
+ "maxLength": 2e3
6322
6333
  },
6323
- name: {
6324
- type: "string",
6325
- minLength: 1,
6326
- maxLength: 200
6334
+ "name": {
6335
+ "type": "string",
6336
+ "minLength": 1,
6337
+ "maxLength": 200
6327
6338
  },
6328
- description: {
6329
- anyOf: [
6339
+ "description": {
6340
+ "anyOf": [
6330
6341
  {
6331
- type: "string",
6332
- maxLength: 2e3
6342
+ "type": "string",
6343
+ "maxLength": 2e3
6333
6344
  },
6334
6345
  {
6335
- type: "null"
6346
+ "type": "null"
6336
6347
  }
6337
6348
  ]
6338
6349
  },
6339
- kind: {
6340
- description: "Canonical OmniCommerce promotion mechanic: product discount, flash sale, voucher, gift with purchase, Buy-X-Get-Y, bundle deal, or Lazada-only free shipping and early bird price.",
6341
- type: "string",
6342
- enum: [
6350
+ "kind": {
6351
+ "description": "Canonical OmniCommerce promotion mechanic: product discount, flash sale, voucher, gift with purchase, Buy-X-Get-Y, bundle deal, or Lazada-only free shipping and early bird price.",
6352
+ "type": "string",
6353
+ "enum": [
6343
6354
  "product_discount",
6344
6355
  "flash_sale",
6345
6356
  "voucher",
@@ -6350,65 +6361,78 @@ var CAMPAIGN_INPUTS = {
6350
6361
  "early_bird_price"
6351
6362
  ]
6352
6363
  },
6353
- salesChannels: {
6354
- minItems: 1,
6355
- type: "array",
6356
- items: {
6357
- type: "string",
6358
- enum: ["pdp", "live"]
6364
+ "salesChannels": {
6365
+ "minItems": 1,
6366
+ "type": "array",
6367
+ "items": {
6368
+ "type": "string",
6369
+ "enum": [
6370
+ "pdp",
6371
+ "live"
6372
+ ]
6359
6373
  }
6360
6374
  },
6361
- discountType: {
6362
- type: "string",
6363
- enum: ["percentage", "fixed_amount"]
6375
+ "discountType": {
6376
+ "type": "string",
6377
+ "enum": [
6378
+ "percentage",
6379
+ "fixed_amount"
6380
+ ]
6364
6381
  },
6365
- discountValue: {
6366
- type: "number",
6367
- minimum: 0
6382
+ "discountValue": {
6383
+ "type": "number",
6384
+ "minimum": 0
6368
6385
  },
6369
- storeDiscounts: {
6370
- description: "Patch discount terms for exact target store keys; unnamed stores remain unchanged. Null discountValue restores shared campaign terms for that store.",
6371
- maxItems: 100,
6372
- type: "array",
6373
- items: {
6374
- type: "object",
6375
- properties: {
6376
- storeKey: {
6377
- type: "string",
6378
- minLength: 1,
6379
- maxLength: 255
6386
+ "storeDiscounts": {
6387
+ "description": "Patch discount terms for exact target store keys; unnamed stores remain unchanged. Null discountValue restores shared campaign terms for that store.",
6388
+ "maxItems": 100,
6389
+ "type": "array",
6390
+ "items": {
6391
+ "type": "object",
6392
+ "properties": {
6393
+ "storeKey": {
6394
+ "type": "string",
6395
+ "minLength": 1,
6396
+ "maxLength": 255
6380
6397
  },
6381
- discountType: {
6382
- type: "string",
6383
- enum: ["percentage", "fixed_amount"]
6398
+ "discountType": {
6399
+ "type": "string",
6400
+ "enum": [
6401
+ "percentage",
6402
+ "fixed_amount"
6403
+ ]
6384
6404
  },
6385
- discountValue: {
6386
- anyOf: [
6405
+ "discountValue": {
6406
+ "anyOf": [
6387
6407
  {
6388
- type: "number",
6389
- minimum: 0
6408
+ "type": "number",
6409
+ "minimum": 0
6390
6410
  },
6391
6411
  {
6392
- type: "null"
6412
+ "type": "null"
6393
6413
  }
6394
6414
  ]
6395
6415
  }
6396
6416
  },
6397
- required: ["storeKey", "discountType", "discountValue"],
6398
- additionalProperties: false
6417
+ "required": [
6418
+ "storeKey",
6419
+ "discountType",
6420
+ "discountValue"
6421
+ ],
6422
+ "additionalProperties": false
6399
6423
  }
6400
6424
  },
6401
- targetStores: {
6402
- description: "Up to 100 connected stores for create (required) or update. Copy marketplace, country, and storeId from get_promotions targetStores or find_products marketplaceDetails. Do not concatenate a storeKeys string.",
6403
- minItems: 1,
6404
- maxItems: 100,
6405
- type: "array",
6406
- items: {
6407
- type: "object",
6408
- properties: {
6409
- marketplace: {
6410
- type: "string",
6411
- enum: [
6425
+ "targetStores": {
6426
+ "description": "Up to 100 connected stores for create (required) or update. Copy marketplace, country, and storeId from get_promotions targetStores or find_products marketplaceDetails. Do not concatenate a storeKeys string.",
6427
+ "minItems": 1,
6428
+ "maxItems": 100,
6429
+ "type": "array",
6430
+ "items": {
6431
+ "type": "object",
6432
+ "properties": {
6433
+ "marketplace": {
6434
+ "type": "string",
6435
+ "enum": [
6412
6436
  "lazada",
6413
6437
  "shopee",
6414
6438
  "tiktok",
@@ -6418,108 +6442,112 @@ var CAMPAIGN_INPUTS = {
6418
6442
  "ebay"
6419
6443
  ]
6420
6444
  },
6421
- country: {
6422
- type: "string",
6423
- minLength: 1,
6424
- maxLength: 80
6445
+ "country": {
6446
+ "type": "string",
6447
+ "minLength": 1,
6448
+ "maxLength": 80
6425
6449
  },
6426
- storeId: {
6427
- type: "string",
6428
- minLength: 1,
6429
- maxLength: 120
6450
+ "storeId": {
6451
+ "type": "string",
6452
+ "minLength": 1,
6453
+ "maxLength": 120
6430
6454
  }
6431
6455
  },
6432
- required: ["marketplace", "country", "storeId"],
6433
- additionalProperties: false
6456
+ "required": [
6457
+ "marketplace",
6458
+ "country",
6459
+ "storeId"
6460
+ ],
6461
+ "additionalProperties": false
6434
6462
  }
6435
6463
  },
6436
- minSalePrice: {
6437
- anyOf: [
6464
+ "minSalePrice": {
6465
+ "anyOf": [
6438
6466
  {
6439
- type: "number",
6440
- minimum: 0
6467
+ "type": "number",
6468
+ "minimum": 0
6441
6469
  },
6442
6470
  {
6443
- type: "null"
6471
+ "type": "null"
6444
6472
  }
6445
6473
  ]
6446
6474
  },
6447
- maxDiscountAmount: {
6448
- anyOf: [
6475
+ "maxDiscountAmount": {
6476
+ "anyOf": [
6449
6477
  {
6450
- type: "number",
6451
- minimum: 0
6478
+ "type": "number",
6479
+ "minimum": 0
6452
6480
  },
6453
6481
  {
6454
- type: "null"
6482
+ "type": "null"
6455
6483
  }
6456
6484
  ]
6457
6485
  },
6458
- minSpend: {
6459
- anyOf: [
6486
+ "minSpend": {
6487
+ "anyOf": [
6460
6488
  {
6461
- type: "number",
6462
- minimum: 0
6489
+ "type": "number",
6490
+ "minimum": 0
6463
6491
  },
6464
6492
  {
6465
- type: "null"
6493
+ "type": "null"
6466
6494
  }
6467
6495
  ]
6468
6496
  },
6469
- voucherCode: {
6470
- anyOf: [
6497
+ "voucherCode": {
6498
+ "anyOf": [
6471
6499
  {
6472
- type: "string",
6473
- minLength: 1,
6474
- maxLength: 100
6500
+ "type": "string",
6501
+ "minLength": 1,
6502
+ "maxLength": 100
6475
6503
  },
6476
6504
  {
6477
- type: "null"
6505
+ "type": "null"
6478
6506
  }
6479
6507
  ]
6480
6508
  },
6481
- claimStartsAt: {
6482
- anyOf: [
6509
+ "claimStartsAt": {
6510
+ "anyOf": [
6483
6511
  {
6484
- type: "string",
6485
- format: "date-time",
6486
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
6512
+ "type": "string",
6513
+ "format": "date-time",
6514
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
6487
6515
  },
6488
6516
  {
6489
- type: "null"
6517
+ "type": "null"
6490
6518
  }
6491
6519
  ]
6492
6520
  },
6493
- totalUsageLimit: {
6494
- anyOf: [
6521
+ "totalUsageLimit": {
6522
+ "anyOf": [
6495
6523
  {
6496
- type: "integer",
6497
- exclusiveMinimum: 0,
6498
- maximum: 9007199254740991
6524
+ "type": "integer",
6525
+ "exclusiveMinimum": 0,
6526
+ "maximum": 9007199254740991
6499
6527
  },
6500
6528
  {
6501
- type: "null"
6529
+ "type": "null"
6502
6530
  }
6503
6531
  ]
6504
6532
  },
6505
- perBuyerLimit: {
6506
- anyOf: [
6533
+ "perBuyerLimit": {
6534
+ "anyOf": [
6507
6535
  {
6508
- type: "integer",
6509
- exclusiveMinimum: 0,
6510
- maximum: 9007199254740991
6536
+ "type": "integer",
6537
+ "exclusiveMinimum": 0,
6538
+ "maximum": 9007199254740991
6511
6539
  },
6512
6540
  {
6513
- type: "null"
6541
+ "type": "null"
6514
6542
  }
6515
6543
  ]
6516
6544
  },
6517
- voucherType: {
6518
- description: "Voucher subtype from get_promotions capabilities.voucherTypes. Browser AOP types (delivery=browser_aop) are writable Seller Center vouchers. Omit browserAutomation.aopId to use the built-in marketplace AOP.",
6519
- anyOf: [
6545
+ "voucherType": {
6546
+ "description": "Voucher subtype from get_promotions capabilities.voucherTypes. Browser AOP types (delivery=browser_aop) are writable Seller Center vouchers. Omit browserAutomation.aopId to use the built-in marketplace AOP.",
6547
+ "anyOf": [
6520
6548
  {
6521
- type: "string",
6522
- enum: [
6549
+ "type": "string",
6550
+ "enum": [
6523
6551
  "shopee_shop",
6524
6552
  "shopee_product",
6525
6553
  "shopee_private",
@@ -6554,137 +6582,153 @@ var CAMPAIGN_INPUTS = {
6554
6582
  ]
6555
6583
  },
6556
6584
  {
6557
- type: "null"
6585
+ "type": "null"
6558
6586
  }
6559
6587
  ]
6560
6588
  },
6561
- voucherCampaign: {
6562
- description: "Campaign voucher targeting: exact campaignId/sessionId from Seller Center and termsAccepted only after the seller reviewed participation obligations. Required for shopee_campaign; nomination creates a draft awaiting marketplace review.",
6563
- type: "object",
6564
- properties: {
6565
- campaignId: {
6566
- type: "string",
6567
- pattern: "^[1-9]\\d{0,39}$"
6589
+ "voucherCampaign": {
6590
+ "description": "Campaign voucher targeting: exact campaignId/sessionId from Seller Center and termsAccepted only after the seller reviewed participation obligations. Required for shopee_campaign; nomination creates a draft awaiting marketplace review.",
6591
+ "type": "object",
6592
+ "properties": {
6593
+ "campaignId": {
6594
+ "type": "string",
6595
+ "pattern": "^[1-9]\\d{0,39}$"
6568
6596
  },
6569
- sessionId: {
6570
- type: "string",
6571
- pattern: "^[1-9]\\d{0,39}$"
6597
+ "sessionId": {
6598
+ "type": "string",
6599
+ "pattern": "^[1-9]\\d{0,39}$"
6572
6600
  },
6573
- termsAccepted: {
6574
- type: "boolean"
6601
+ "termsAccepted": {
6602
+ "type": "boolean"
6575
6603
  }
6576
6604
  },
6577
- required: ["campaignId", "sessionId", "termsAccepted"],
6578
- additionalProperties: false
6605
+ "required": [
6606
+ "campaignId",
6607
+ "sessionId",
6608
+ "termsAccepted"
6609
+ ],
6610
+ "additionalProperties": false
6579
6611
  },
6580
- browserAutomation: {
6581
- anyOf: [
6612
+ "browserAutomation": {
6613
+ "anyOf": [
6582
6614
  {
6583
- type: "object",
6584
- properties: {
6585
- aopId: {
6586
- type: "string",
6587
- minLength: 1,
6588
- maxLength: 160
6615
+ "type": "object",
6616
+ "properties": {
6617
+ "aopId": {
6618
+ "type": "string",
6619
+ "minLength": 1,
6620
+ "maxLength": 160
6589
6621
  },
6590
- variableValues: {
6591
- type: "object",
6592
- propertyNames: {
6593
- type: "string",
6594
- minLength: 1,
6595
- maxLength: 160
6622
+ "variableValues": {
6623
+ "type": "object",
6624
+ "propertyNames": {
6625
+ "type": "string",
6626
+ "minLength": 1,
6627
+ "maxLength": 160
6596
6628
  },
6597
- additionalProperties: {
6598
- type: "string",
6599
- maxLength: 8e3
6629
+ "additionalProperties": {
6630
+ "type": "string",
6631
+ "maxLength": 8e3
6600
6632
  }
6601
6633
  },
6602
- instructions: {
6603
- type: "string",
6604
- maxLength: 8e3
6634
+ "instructions": {
6635
+ "type": "string",
6636
+ "maxLength": 8e3
6605
6637
  }
6606
6638
  },
6607
- additionalProperties: false
6639
+ "additionalProperties": false
6608
6640
  },
6609
6641
  {
6610
- type: "null"
6642
+ "type": "null"
6611
6643
  }
6612
6644
  ]
6613
6645
  },
6614
- voucherScope: {
6615
- description: "shop = all products, products = selected assigned products. Repeat Buyer defaults to shop.",
6616
- type: "string",
6617
- enum: ["products", "shop"]
6646
+ "voucherScope": {
6647
+ "description": "shop = all products, products = selected assigned products. Repeat Buyer defaults to shop.",
6648
+ "type": "string",
6649
+ "enum": [
6650
+ "products",
6651
+ "shop"
6652
+ ]
6618
6653
  },
6619
- voucherReward: {
6620
- description: "Seller Center reward type. coins_cashback is a percentage greater than 3 and does not reduce salePrice.",
6621
- type: "string",
6622
- enum: ["discount", "coins_cashback"]
6654
+ "voucherReward": {
6655
+ "description": "Seller Center reward type. coins_cashback is a percentage greater than 3 and does not reduce salePrice.",
6656
+ "type": "string",
6657
+ "enum": [
6658
+ "discount",
6659
+ "coins_cashback"
6660
+ ]
6623
6661
  },
6624
- voucherAudience: {
6625
- type: "string",
6626
- enum: ["general", "shop_follow"]
6662
+ "voucherAudience": {
6663
+ "type": "string",
6664
+ "enum": [
6665
+ "general",
6666
+ "shop_follow"
6667
+ ]
6627
6668
  },
6628
- redemptionPoints: {
6629
- description: "Membership points required per voucher redemption. Required for shopee_redemption and lazada_points_redeemable; unavailable for other voucher types.",
6630
- type: "integer",
6631
- exclusiveMinimum: 0,
6632
- maximum: 9007199254740991
6669
+ "redemptionPoints": {
6670
+ "description": "Membership points required per voucher redemption. Required for shopee_redemption and lazada_points_redeemable; unavailable for other voucher types.",
6671
+ "type": "integer",
6672
+ "exclusiveMinimum": 0,
6673
+ "maximum": 9007199254740991
6633
6674
  },
6634
- repeatPurchaseMinCount: {
6635
- description: "Shopee Repeat Buyer: minimum completed shop orders, 1 or 2. Required for shopee_repeat_buyer.",
6636
- type: "integer",
6637
- minimum: 1,
6638
- maximum: 999
6675
+ "repeatPurchaseMinCount": {
6676
+ "description": "Shopee Repeat Buyer: minimum completed shop orders, 1 or 2. Required for shopee_repeat_buyer.",
6677
+ "type": "integer",
6678
+ "minimum": 1,
6679
+ "maximum": 999
6639
6680
  },
6640
- repeatPurchaseLookbackDays: {
6641
- description: "Shopee Repeat Buyer: lookback window in days, one of 30, 90, 180 or 365. Required for shopee_repeat_buyer.",
6642
- type: "integer",
6643
- minimum: 1,
6644
- maximum: 365
6681
+ "repeatPurchaseLookbackDays": {
6682
+ "description": "Shopee Repeat Buyer: lookback window in days, one of 30, 90, 180 or 365. Required for shopee_repeat_buyer.",
6683
+ "type": "integer",
6684
+ "minimum": 1,
6685
+ "maximum": 365
6645
6686
  },
6646
- smartVoucher: {
6647
- description: "Shopee Smart Voucher toggle. Used by New Buyer and similar portal types.",
6648
- type: "boolean"
6687
+ "smartVoucher": {
6688
+ "description": "Shopee Smart Voucher toggle. Used by New Buyer and similar portal types.",
6689
+ "type": "boolean"
6649
6690
  },
6650
- followPrizeExpiryDays: {
6651
- description: "Shopee Follow Prize: days after claim until expiry. Seller Center is 7.",
6652
- type: "integer",
6653
- minimum: 1,
6654
- maximum: 30
6691
+ "followPrizeExpiryDays": {
6692
+ "description": "Shopee Follow Prize: days after claim until expiry. Seller Center is 7.",
6693
+ "type": "integer",
6694
+ "minimum": 1,
6695
+ "maximum": 30
6655
6696
  },
6656
- videoDisplayMode: {
6657
- description: "Shopee Video display: shopee_video = all Shopee Video; creator_video = targeted creator videos only.",
6658
- type: "string",
6659
- enum: ["shopee_video", "creator_video"]
6697
+ "videoDisplayMode": {
6698
+ "description": "Shopee Video display: shopee_video = all Shopee Video; creator_video = targeted creator videos only.",
6699
+ "type": "string",
6700
+ "enum": [
6701
+ "shopee_video",
6702
+ "creator_video"
6703
+ ]
6660
6704
  },
6661
- exclusiveCreatorUsernames: {
6662
- description: "Exclusive Creator Voucher: up to 15 Shopee usernames.",
6663
- maxItems: 15,
6664
- type: "array",
6665
- items: {
6666
- type: "string",
6667
- minLength: 1,
6668
- maxLength: 64
6705
+ "exclusiveCreatorUsernames": {
6706
+ "description": "Exclusive Creator Voucher: up to 15 Shopee usernames.",
6707
+ "maxItems": 15,
6708
+ "type": "array",
6709
+ "items": {
6710
+ "type": "string",
6711
+ "minLength": 1,
6712
+ "maxLength": 64
6669
6713
  }
6670
6714
  },
6671
- exclusiveStreamerUsernames: {
6672
- description: "Exclusive Streamer Voucher: up to 15 Shopee usernames.",
6673
- maxItems: 15,
6674
- type: "array",
6675
- items: {
6676
- type: "string",
6677
- minLength: 1,
6678
- maxLength: 64
6715
+ "exclusiveStreamerUsernames": {
6716
+ "description": "Exclusive Streamer Voucher: up to 15 Shopee usernames.",
6717
+ "maxItems": 15,
6718
+ "type": "array",
6719
+ "items": {
6720
+ "type": "string",
6721
+ "minLength": 1,
6722
+ "maxLength": 64
6679
6723
  }
6680
6724
  },
6681
- voucherDisplayChannels: {
6682
- description: 'Shopee display setting. ["all"] = display on all pages; [] = hidden/share by code.',
6683
- maxItems: 4,
6684
- type: "array",
6685
- items: {
6686
- type: "string",
6687
- enum: [
6725
+ "voucherDisplayChannels": {
6726
+ "description": 'Shopee display setting. ["all"] = display on all pages; [] = hidden/share by code.',
6727
+ "maxItems": 4,
6728
+ "type": "array",
6729
+ "items": {
6730
+ "type": "string",
6731
+ "enum": [
6688
6732
  "all",
6689
6733
  "feed",
6690
6734
  "live",
@@ -6694,243 +6738,268 @@ var CAMPAIGN_INPUTS = {
6694
6738
  ]
6695
6739
  }
6696
6740
  },
6697
- bundlePriceType: {
6698
- type: "string",
6699
- enum: ["discount", "fixed_price"]
6741
+ "bundlePriceType": {
6742
+ "type": "string",
6743
+ "enum": [
6744
+ "discount",
6745
+ "fixed_price"
6746
+ ]
6700
6747
  },
6701
- bundleTiers: {
6702
- maxItems: 2,
6703
- type: "array",
6704
- items: {
6705
- type: "object",
6706
- properties: {
6707
- minimumQuantity: {
6708
- type: "integer",
6709
- minimum: 2,
6710
- maximum: 3e3
6748
+ "bundleTiers": {
6749
+ "maxItems": 2,
6750
+ "type": "array",
6751
+ "items": {
6752
+ "type": "object",
6753
+ "properties": {
6754
+ "minimumQuantity": {
6755
+ "type": "integer",
6756
+ "minimum": 2,
6757
+ "maximum": 3e3
6711
6758
  },
6712
- discountValue: {
6713
- type: "number",
6714
- exclusiveMinimum: 0
6759
+ "discountValue": {
6760
+ "type": "number",
6761
+ "exclusiveMinimum": 0
6715
6762
  }
6716
6763
  },
6717
- required: ["minimumQuantity", "discountValue"]
6764
+ "required": [
6765
+ "minimumQuantity",
6766
+ "discountValue"
6767
+ ]
6718
6768
  }
6719
6769
  },
6720
- thresholdType: {
6721
- type: "string",
6722
- enum: ["item_quantity", "order_amount"]
6770
+ "thresholdType": {
6771
+ "type": "string",
6772
+ "enum": [
6773
+ "item_quantity",
6774
+ "order_amount"
6775
+ ]
6723
6776
  },
6724
- thresholdValue: {
6725
- type: "number",
6726
- exclusiveMinimum: 0
6777
+ "thresholdValue": {
6778
+ "type": "number",
6779
+ "exclusiveMinimum": 0
6727
6780
  },
6728
- giftType: {
6729
- type: "string",
6730
- enum: ["gift", "sample"]
6781
+ "giftType": {
6782
+ "type": "string",
6783
+ "enum": [
6784
+ "gift",
6785
+ "sample"
6786
+ ]
6731
6787
  },
6732
- giftQuantity: {
6733
- type: "integer",
6734
- exclusiveMinimum: 0,
6735
- maximum: 999
6788
+ "giftQuantity": {
6789
+ "type": "integer",
6790
+ "exclusiveMinimum": 0,
6791
+ "maximum": 999
6736
6792
  },
6737
- gifts: {
6738
- minItems: 1,
6739
- maxItems: 20,
6740
- type: "array",
6741
- items: {
6742
- type: "object",
6743
- properties: {
6744
- productId: {
6745
- type: "string",
6746
- format: "uuid",
6747
- pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
6793
+ "gifts": {
6794
+ "minItems": 1,
6795
+ "maxItems": 20,
6796
+ "type": "array",
6797
+ "items": {
6798
+ "type": "object",
6799
+ "properties": {
6800
+ "productId": {
6801
+ "type": "string",
6802
+ "format": "uuid",
6803
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
6748
6804
  },
6749
- variantId: {
6750
- anyOf: [
6805
+ "variantId": {
6806
+ "anyOf": [
6751
6807
  {
6752
- type: "string",
6753
- format: "uuid",
6754
- pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
6808
+ "type": "string",
6809
+ "format": "uuid",
6810
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
6755
6811
  },
6756
6812
  {
6757
- type: "null"
6813
+ "type": "null"
6758
6814
  }
6759
6815
  ]
6760
6816
  },
6761
- totalClaimLimit: {
6762
- type: "integer",
6763
- minimum: 1,
6764
- maximum: 99999
6817
+ "totalClaimLimit": {
6818
+ "type": "integer",
6819
+ "minimum": 1,
6820
+ "maximum": 99999
6765
6821
  }
6766
6822
  },
6767
- required: ["productId", "totalClaimLimit"],
6768
- additionalProperties: false
6823
+ "required": [
6824
+ "productId",
6825
+ "totalClaimLimit"
6826
+ ],
6827
+ "additionalProperties": false
6769
6828
  }
6770
6829
  },
6771
- buyQuantity: {
6772
- type: "integer",
6773
- exclusiveMinimum: 0,
6774
- maximum: 999
6830
+ "buyQuantity": {
6831
+ "type": "integer",
6832
+ "exclusiveMinimum": 0,
6833
+ "maximum": 999
6775
6834
  },
6776
- getQuantity: {
6777
- type: "integer",
6778
- exclusiveMinimum: 0,
6779
- maximum: 999
6835
+ "getQuantity": {
6836
+ "type": "integer",
6837
+ "exclusiveMinimum": 0,
6838
+ "maximum": 999
6780
6839
  },
6781
- benefitProductIds: {
6782
- minItems: 1,
6783
- maxItems: 200,
6784
- type: "array",
6785
- items: {
6786
- type: "string",
6787
- format: "uuid",
6788
- pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
6840
+ "benefitProductIds": {
6841
+ "minItems": 1,
6842
+ "maxItems": 200,
6843
+ "type": "array",
6844
+ "items": {
6845
+ "type": "string",
6846
+ "format": "uuid",
6847
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
6789
6848
  }
6790
6849
  },
6791
- benefitType: {
6792
- type: "string",
6793
- enum: ["free", "percentage", "fixed_amount"]
6850
+ "benefitType": {
6851
+ "type": "string",
6852
+ "enum": [
6853
+ "free",
6854
+ "percentage",
6855
+ "fixed_amount"
6856
+ ]
6794
6857
  },
6795
- benefitValue: {
6796
- type: "number",
6797
- minimum: 0
6858
+ "benefitValue": {
6859
+ "type": "number",
6860
+ "minimum": 0
6798
6861
  },
6799
- maxApplicationsPerOrder: {
6800
- type: "integer",
6801
- exclusiveMinimum: 0,
6802
- maximum: 999
6862
+ "maxApplicationsPerOrder": {
6863
+ "type": "integer",
6864
+ "exclusiveMinimum": 0,
6865
+ "maximum": 999
6803
6866
  },
6804
- bundleMinimumQuantity: {
6805
- type: "integer",
6806
- minimum: 2,
6807
- maximum: 3e3
6867
+ "bundleMinimumQuantity": {
6868
+ "type": "integer",
6869
+ "minimum": 2,
6870
+ "maximum": 3e3
6808
6871
  },
6809
- shippingDeliveryOption: {
6810
- description: "Free shipping delivery option. Lazada: STANDARD (default), ECONOMY, EXPRESS, SELLER_OWN_FLEET or P2P, as offered by the store.",
6811
- type: "string",
6812
- pattern: "^[A-Z0-9_]{1,40}$"
6872
+ "shippingDeliveryOption": {
6873
+ "description": "Free shipping delivery option. Lazada: STANDARD (default), ECONOMY, EXPRESS, SELLER_OWN_FLEET or P2P, as offered by the store.",
6874
+ "type": "string",
6875
+ "pattern": "^[A-Z0-9_]{1,40}$"
6813
6876
  },
6814
- shippingBudget: {
6815
- description: "Free shipping: total shipping subsidy budget in the store currency. Omit for an unlimited budget.",
6816
- type: "number",
6817
- exclusiveMinimum: 0
6877
+ "shippingBudget": {
6878
+ "description": "Free shipping: total shipping subsidy budget in the store currency. Omit for an unlimited budget.",
6879
+ "type": "number",
6880
+ "exclusiveMinimum": 0
6818
6881
  }
6819
6882
  },
6820
- required: ["id"],
6821
- additionalProperties: false
6883
+ "required": [
6884
+ "id"
6885
+ ],
6886
+ "additionalProperties": false
6822
6887
  }
6823
6888
  },
6824
- windows: {
6825
- description: "Add or update windows by stable id. Existing IDs patch only supplied fields; new IDs require name, startsAt and endsAt. Omitted windows stay unchanged.",
6826
- maxItems: 100,
6827
- type: "array",
6828
- items: {
6829
- type: "object",
6830
- properties: {
6831
- id: {
6832
- type: "string",
6833
- minLength: 1,
6834
- maxLength: 160
6889
+ "windows": {
6890
+ "description": "Add or update windows by stable id. Existing IDs patch only supplied fields; new IDs require name, startsAt and endsAt. Omitted windows stay unchanged.",
6891
+ "maxItems": 100,
6892
+ "type": "array",
6893
+ "items": {
6894
+ "type": "object",
6895
+ "properties": {
6896
+ "id": {
6897
+ "type": "string",
6898
+ "minLength": 1,
6899
+ "maxLength": 160
6835
6900
  },
6836
- name: {
6837
- type: "string",
6838
- minLength: 1,
6839
- maxLength: 160
6901
+ "name": {
6902
+ "type": "string",
6903
+ "minLength": 1,
6904
+ "maxLength": 160
6840
6905
  },
6841
- startsAt: {
6842
- anyOf: [
6906
+ "startsAt": {
6907
+ "anyOf": [
6843
6908
  {
6844
- type: "string",
6845
- format: "date-time",
6846
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
6909
+ "type": "string",
6910
+ "format": "date-time",
6911
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
6847
6912
  },
6848
6913
  {
6849
- type: "null"
6914
+ "type": "null"
6850
6915
  }
6851
6916
  ]
6852
6917
  },
6853
- endsAt: {
6854
- anyOf: [
6918
+ "endsAt": {
6919
+ "anyOf": [
6855
6920
  {
6856
- type: "string",
6857
- format: "date-time",
6858
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
6921
+ "type": "string",
6922
+ "format": "date-time",
6923
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
6859
6924
  },
6860
6925
  {
6861
- type: "null"
6926
+ "type": "null"
6862
6927
  }
6863
6928
  ]
6864
6929
  },
6865
- preparesAt: {
6866
- anyOf: [
6930
+ "preparesAt": {
6931
+ "anyOf": [
6867
6932
  {
6868
- type: "string",
6869
- format: "date-time",
6870
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
6933
+ "type": "string",
6934
+ "format": "date-time",
6935
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
6871
6936
  },
6872
6937
  {
6873
- type: "null"
6938
+ "type": "null"
6874
6939
  }
6875
6940
  ]
6876
6941
  },
6877
- reviewNotes: {
6878
- type: "string",
6879
- maxLength: 8e3
6942
+ "reviewNotes": {
6943
+ "type": "string",
6944
+ "maxLength": 8e3
6880
6945
  }
6881
6946
  },
6882
- required: ["id"],
6883
- additionalProperties: false
6947
+ "required": [
6948
+ "id"
6949
+ ],
6950
+ "additionalProperties": false
6884
6951
  }
6885
6952
  },
6886
- removeWindowIds: {
6887
- description: "Delete these windows. Move or remove their promotions in the same call. Maximum 100 IDs.",
6888
- maxItems: 100,
6889
- type: "array",
6890
- items: {
6891
- type: "string",
6892
- minLength: 1,
6893
- maxLength: 160
6953
+ "removeWindowIds": {
6954
+ "description": "Delete these windows. Move or remove their promotions in the same call. Maximum 100 IDs.",
6955
+ "maxItems": 100,
6956
+ "type": "array",
6957
+ "items": {
6958
+ "type": "string",
6959
+ "minLength": 1,
6960
+ "maxLength": 160
6894
6961
  }
6895
6962
  },
6896
- removeOfferIds: {
6897
- description: "Delete these draft promotion offers. Maximum 500 IDs.",
6898
- maxItems: 500,
6899
- type: "array",
6900
- items: {
6901
- type: "string",
6902
- minLength: 1,
6903
- maxLength: 160
6963
+ "removeOfferIds": {
6964
+ "description": "Delete these draft promotion offers. Maximum 500 IDs.",
6965
+ "maxItems": 500,
6966
+ "type": "array",
6967
+ "items": {
6968
+ "type": "string",
6969
+ "minLength": 1,
6970
+ "maxLength": 160
6904
6971
  }
6905
6972
  },
6906
- organizationId: {
6907
- description: "Required for session auth. Optional for an API key, which already identifies the organization.",
6908
- type: "string",
6909
- minLength: 1,
6910
- maxLength: 120
6973
+ "organizationId": {
6974
+ "description": "Required for session auth. Optional for an API key, which already identifies the organization.",
6975
+ "type": "string",
6976
+ "minLength": 1,
6977
+ "maxLength": 120
6911
6978
  },
6912
- expectedPendingVersion: {
6913
- anyOf: [
6979
+ "expectedPendingVersion": {
6980
+ "anyOf": [
6914
6981
  {
6915
- type: "integer",
6916
- exclusiveMinimum: 0,
6917
- maximum: 9007199254740991
6982
+ "type": "integer",
6983
+ "exclusiveMinimum": 0,
6984
+ "maximum": 9007199254740991
6918
6985
  },
6919
6986
  {
6920
- type: "null"
6987
+ "type": "null"
6921
6988
  }
6922
6989
  ]
6923
6990
  }
6924
6991
  },
6925
- required: ["expectedRevision"],
6926
- additionalProperties: false
6927
- },
6928
- action: {
6929
- type: "object",
6930
- properties: {
6931
- action: {
6932
- type: "string",
6933
- enum: [
6992
+ "required": [
6993
+ "expectedRevision"
6994
+ ],
6995
+ "additionalProperties": false
6996
+ },
6997
+ "action": {
6998
+ "type": "object",
6999
+ "properties": {
7000
+ "action": {
7001
+ "type": "string",
7002
+ "enum": [
6934
7003
  "approve",
6935
7004
  "run",
6936
7005
  "approve_and_run",
@@ -6941,30 +7010,33 @@ var CAMPAIGN_INPUTS = {
6941
7010
  "discard_change"
6942
7011
  ]
6943
7012
  },
6944
- expectedRevision: {
6945
- type: "integer",
6946
- exclusiveMinimum: 0,
6947
- maximum: 9007199254740991
7013
+ "expectedRevision": {
7014
+ "type": "integer",
7015
+ "exclusiveMinimum": 0,
7016
+ "maximum": 9007199254740991
6948
7017
  },
6949
- expectedPendingVersion: {
6950
- type: "integer",
6951
- exclusiveMinimum: 0,
6952
- maximum: 9007199254740991
7018
+ "expectedPendingVersion": {
7019
+ "type": "integer",
7020
+ "exclusiveMinimum": 0,
7021
+ "maximum": 9007199254740991
6953
7022
  },
6954
- sellerReviewAcknowledgement: {
6955
- description: "Fingerprint from the marketplace validation report, supplied only after the user explicitly acknowledges its seller-review findings for this revision and proposal version.",
6956
- type: "string",
6957
- pattern: "^[a-f0-9]{64}$"
7023
+ "sellerReviewAcknowledgement": {
7024
+ "description": "Fingerprint from the marketplace validation report, supplied only after the user explicitly acknowledges its seller-review findings for this revision and proposal version.",
7025
+ "type": "string",
7026
+ "pattern": "^[a-f0-9]{64}$"
6958
7027
  },
6959
- organizationId: {
6960
- description: "Required for session auth. Optional for an API key, which already identifies the organization.",
6961
- type: "string",
6962
- minLength: 1,
6963
- maxLength: 120
7028
+ "organizationId": {
7029
+ "description": "Required for session auth. Optional for an API key, which already identifies the organization.",
7030
+ "type": "string",
7031
+ "minLength": 1,
7032
+ "maxLength": 120
6964
7033
  }
6965
7034
  },
6966
- required: ["action", "expectedRevision"],
6967
- additionalProperties: false
7035
+ "required": [
7036
+ "action",
7037
+ "expectedRevision"
7038
+ ],
7039
+ "additionalProperties": false
6968
7040
  }
6969
7041
  };
6970
7042