@getopenpost/n8n-nodes-openpost 0.0.0 → 0.1.1

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.
Files changed (46) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +57 -3
  3. package/dist/credentials/OpenPostApi.credentials.d.ts +17 -0
  4. package/dist/credentials/OpenPostApi.credentials.js +52 -0
  5. package/dist/credentials/OpenPostApi.credentials.js.map +1 -0
  6. package/dist/credentials/openpost.svg +5 -0
  7. package/dist/icons/openpost.svg +5 -0
  8. package/dist/nodes/OpenPost/OpenPost.node.d.ts +4 -0
  9. package/dist/nodes/OpenPost/OpenPost.node.js +22 -0
  10. package/dist/nodes/OpenPost/OpenPost.node.js.map +1 -0
  11. package/dist/nodes/OpenPost/openpost.dark.svg +5 -0
  12. package/dist/nodes/OpenPost/openpost.svg +5 -0
  13. package/dist/nodes/OpenPost/v1/OpenPostV1.node.d.ts +13 -0
  14. package/dist/nodes/OpenPost/v1/OpenPostV1.node.js +145 -0
  15. package/dist/nodes/OpenPost/v1/OpenPostV1.node.js.map +1 -0
  16. package/dist/nodes/OpenPost/v1/actions/generated/requestMappers.d.ts +1998 -0
  17. package/dist/nodes/OpenPost/v1/actions/generated/requestMappers.js +1185 -0
  18. package/dist/nodes/OpenPost/v1/actions/generated/requestMappers.js.map +1 -0
  19. package/dist/nodes/OpenPost/v1/actions/mapper.d.ts +36 -0
  20. package/dist/nodes/OpenPost/v1/actions/mapper.js +184 -0
  21. package/dist/nodes/OpenPost/v1/actions/mapper.js.map +1 -0
  22. package/dist/nodes/OpenPost/v1/descriptions/generated/descriptions.d.ts +333 -0
  23. package/dist/nodes/OpenPost/v1/descriptions/generated/descriptions.js +1869 -0
  24. package/dist/nodes/OpenPost/v1/descriptions/generated/descriptions.js.map +1 -0
  25. package/dist/nodes/OpenPost/v1/errors.d.ts +11 -0
  26. package/dist/nodes/OpenPost/v1/errors.js +43 -0
  27. package/dist/nodes/OpenPost/v1/errors.js.map +1 -0
  28. package/dist/nodes/OpenPost/v1/media/uploadBinary.d.ts +15 -0
  29. package/dist/nodes/OpenPost/v1/media/uploadBinary.js +69 -0
  30. package/dist/nodes/OpenPost/v1/media/uploadBinary.js.map +1 -0
  31. package/dist/nodes/OpenPost/v1/methods/listSearch.d.ts +7 -0
  32. package/dist/nodes/OpenPost/v1/methods/listSearch.js +80 -0
  33. package/dist/nodes/OpenPost/v1/methods/listSearch.js.map +1 -0
  34. package/dist/nodes/OpenPost/v1/openpost.dark.svg +5 -0
  35. package/dist/nodes/OpenPost/v1/openpost.svg +5 -0
  36. package/dist/nodes/OpenPost/v1/transport/openPostApiRequest.d.ts +5 -0
  37. package/dist/nodes/OpenPost/v1/transport/openPostApiRequest.js +64 -0
  38. package/dist/nodes/OpenPost/v1/transport/openPostApiRequest.js.map +1 -0
  39. package/dist/nodes/OpenPost/v1/transport/url.d.ts +2 -0
  40. package/dist/nodes/OpenPost/v1/transport/url.js +46 -0
  41. package/dist/nodes/OpenPost/v1/transport/url.js.map +1 -0
  42. package/docs/selected-contract-report.md +37 -0
  43. package/examples/create-draft.json +63 -0
  44. package/examples/list-workspaces.json +53 -0
  45. package/icons/openpost.svg +5 -0
  46. package/package.json +61 -4
@@ -0,0 +1,1185 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.generatedActionRequestMappers = void 0;
4
+ exports.findGeneratedAction = findGeneratedAction;
5
+ // Generated by scripts/generate-selected-automation-contract.mjs. Do not edit.
6
+ exports.generatedActionRequestMappers = [
7
+ {
8
+ actionKey: "workspace.getMany",
9
+ effect: "query",
10
+ fields: [],
11
+ idempotency: "none",
12
+ method: "GET",
13
+ operationIDs: ["list-workspaces"],
14
+ pagination: null,
15
+ path: "/workspaces",
16
+ request: {
17
+ bodyRequired: false,
18
+ bodySchemaRef: "",
19
+ parameters: [],
20
+ },
21
+ result: {
22
+ body_path: "",
23
+ },
24
+ retry: "transient",
25
+ synthetic: false,
26
+ },
27
+ {
28
+ actionKey: "account.getMany",
29
+ effect: "query",
30
+ fields: [
31
+ {
32
+ apiName: "workspace_id",
33
+ body: false,
34
+ location: "query",
35
+ name: "workspaceId",
36
+ },
37
+ ],
38
+ idempotency: "none",
39
+ method: "GET",
40
+ operationIDs: ["list-accounts"],
41
+ pagination: null,
42
+ path: "/accounts",
43
+ request: {
44
+ bodyRequired: false,
45
+ bodySchemaRef: "",
46
+ parameters: [
47
+ {
48
+ in: "query",
49
+ name: "workspace_id",
50
+ required: true,
51
+ type: "string",
52
+ },
53
+ ],
54
+ },
55
+ result: {
56
+ body_path: "",
57
+ },
58
+ retry: "transient",
59
+ synthetic: false,
60
+ },
61
+ {
62
+ actionKey: "account.getDestinationOptions",
63
+ effect: "query",
64
+ fields: [
65
+ {
66
+ apiName: "account_id",
67
+ body: false,
68
+ location: "path",
69
+ name: "accountId",
70
+ },
71
+ {
72
+ apiName: "region_code",
73
+ body: false,
74
+ location: "query",
75
+ name: "regionCode",
76
+ },
77
+ {
78
+ apiName: "language",
79
+ body: false,
80
+ location: "query",
81
+ name: "language",
82
+ },
83
+ ],
84
+ idempotency: "none",
85
+ method: "GET",
86
+ operationIDs: ["get-account-destination-options"],
87
+ pagination: null,
88
+ path: "/accounts/{account_id}/destination-options",
89
+ request: {
90
+ bodyRequired: false,
91
+ bodySchemaRef: "",
92
+ parameters: [
93
+ {
94
+ in: "path",
95
+ name: "account_id",
96
+ required: true,
97
+ type: "string",
98
+ },
99
+ {
100
+ in: "query",
101
+ name: "region_code",
102
+ required: false,
103
+ type: "string",
104
+ },
105
+ {
106
+ in: "query",
107
+ name: "language",
108
+ required: false,
109
+ type: "string",
110
+ },
111
+ ],
112
+ },
113
+ result: {
114
+ id_path: "id",
115
+ },
116
+ retry: "transient",
117
+ synthetic: false,
118
+ },
119
+ {
120
+ actionKey: "account.getProviderReadiness",
121
+ effect: "query",
122
+ fields: [
123
+ {
124
+ apiName: "workspace_id",
125
+ body: false,
126
+ location: "query",
127
+ name: "workspaceId",
128
+ },
129
+ ],
130
+ idempotency: "none",
131
+ method: "GET",
132
+ operationIDs: ["get-provider-readiness"],
133
+ pagination: null,
134
+ path: "/provider-readiness",
135
+ request: {
136
+ bodyRequired: false,
137
+ bodySchemaRef: "",
138
+ parameters: [
139
+ {
140
+ in: "query",
141
+ name: "workspace_id",
142
+ required: true,
143
+ type: "string",
144
+ },
145
+ ],
146
+ },
147
+ result: {
148
+ id_path: "id",
149
+ },
150
+ retry: "transient",
151
+ synthetic: false,
152
+ },
153
+ {
154
+ actionKey: "socialSet.getMany",
155
+ effect: "query",
156
+ fields: [
157
+ {
158
+ apiName: "workspace_id",
159
+ body: false,
160
+ location: "query",
161
+ name: "workspaceId",
162
+ },
163
+ ],
164
+ idempotency: "none",
165
+ method: "GET",
166
+ operationIDs: ["list-social-sets"],
167
+ pagination: null,
168
+ path: "/social-sets",
169
+ request: {
170
+ bodyRequired: false,
171
+ bodySchemaRef: "",
172
+ parameters: [
173
+ {
174
+ in: "query",
175
+ name: "workspace_id",
176
+ required: true,
177
+ type: "string",
178
+ },
179
+ ],
180
+ },
181
+ result: {
182
+ body_path: "",
183
+ },
184
+ retry: "transient",
185
+ synthetic: false,
186
+ },
187
+ {
188
+ actionKey: "socialSet.get",
189
+ effect: "query",
190
+ fields: [
191
+ {
192
+ apiName: "id",
193
+ body: false,
194
+ location: "path",
195
+ name: "socialSetId",
196
+ },
197
+ ],
198
+ idempotency: "none",
199
+ method: "GET",
200
+ operationIDs: ["get-social-set"],
201
+ pagination: null,
202
+ path: "/social-sets/{id}",
203
+ request: {
204
+ bodyRequired: false,
205
+ bodySchemaRef: "",
206
+ parameters: [
207
+ {
208
+ in: "path",
209
+ name: "id",
210
+ required: true,
211
+ type: "string",
212
+ },
213
+ ],
214
+ },
215
+ result: {
216
+ id_path: "id",
217
+ },
218
+ retry: "transient",
219
+ synthetic: false,
220
+ },
221
+ {
222
+ actionKey: "postingSchedule.getNextAvailableSlot",
223
+ effect: "query",
224
+ fields: [
225
+ {
226
+ apiName: "workspace_id",
227
+ body: false,
228
+ location: "query",
229
+ name: "workspaceId",
230
+ },
231
+ ],
232
+ idempotency: "none",
233
+ method: "GET",
234
+ operationIDs: ["get-next-available-slot"],
235
+ pagination: null,
236
+ path: "/posting-schedules/next-slot",
237
+ request: {
238
+ bodyRequired: false,
239
+ bodySchemaRef: "",
240
+ parameters: [
241
+ {
242
+ in: "query",
243
+ name: "workspace_id",
244
+ required: false,
245
+ type: "string",
246
+ },
247
+ ],
248
+ },
249
+ result: {
250
+ id_path: "id",
251
+ },
252
+ retry: "transient",
253
+ synthetic: false,
254
+ },
255
+ {
256
+ actionKey: "media.getMany",
257
+ effect: "query",
258
+ fields: [
259
+ {
260
+ apiName: "workspace_id",
261
+ body: false,
262
+ location: "query",
263
+ name: "workspaceId",
264
+ },
265
+ {
266
+ apiName: "search",
267
+ body: false,
268
+ location: "query",
269
+ name: "search",
270
+ },
271
+ {
272
+ apiName: "limit",
273
+ body: false,
274
+ location: "query",
275
+ name: "limit",
276
+ },
277
+ ],
278
+ idempotency: "none",
279
+ method: "GET",
280
+ operationIDs: ["list-media"],
281
+ pagination: {
282
+ cursor_parameter: "",
283
+ has_more_header: "",
284
+ limit_parameter: "limit",
285
+ next_cursor_header: "",
286
+ offset_parameter: "offset",
287
+ style: "offset",
288
+ total_path: "total",
289
+ },
290
+ path: "/media",
291
+ request: {
292
+ bodyRequired: false,
293
+ bodySchemaRef: "",
294
+ parameters: [
295
+ {
296
+ in: "query",
297
+ name: "workspace_id",
298
+ required: true,
299
+ type: "string",
300
+ },
301
+ {
302
+ in: "query",
303
+ name: "filter",
304
+ required: false,
305
+ type: "string",
306
+ },
307
+ {
308
+ in: "query",
309
+ name: "sort",
310
+ required: false,
311
+ type: "string",
312
+ },
313
+ {
314
+ in: "query",
315
+ name: "search",
316
+ required: false,
317
+ type: "string",
318
+ },
319
+ {
320
+ in: "query",
321
+ name: "type",
322
+ required: false,
323
+ type: "string",
324
+ },
325
+ {
326
+ in: "query",
327
+ name: "source",
328
+ required: false,
329
+ type: "string",
330
+ },
331
+ {
332
+ in: "query",
333
+ name: "asset_kind",
334
+ required: false,
335
+ type: "string",
336
+ },
337
+ {
338
+ in: "query",
339
+ name: "lifecycle",
340
+ required: false,
341
+ type: "string",
342
+ },
343
+ {
344
+ in: "query",
345
+ name: "aspect",
346
+ required: false,
347
+ type: "string",
348
+ },
349
+ {
350
+ in: "query",
351
+ name: "tag_id",
352
+ required: false,
353
+ type: "string",
354
+ },
355
+ {
356
+ in: "query",
357
+ name: "tag_ids",
358
+ required: false,
359
+ type: "string",
360
+ },
361
+ {
362
+ in: "query",
363
+ name: "untagged",
364
+ required: false,
365
+ type: "boolean",
366
+ },
367
+ {
368
+ in: "query",
369
+ name: "min_width",
370
+ required: false,
371
+ type: "integer",
372
+ },
373
+ {
374
+ in: "query",
375
+ name: "min_height",
376
+ required: false,
377
+ type: "integer",
378
+ },
379
+ {
380
+ in: "query",
381
+ name: "max_width",
382
+ required: false,
383
+ type: "integer",
384
+ },
385
+ {
386
+ in: "query",
387
+ name: "max_height",
388
+ required: false,
389
+ type: "integer",
390
+ },
391
+ {
392
+ in: "query",
393
+ name: "date_from",
394
+ required: false,
395
+ type: "string",
396
+ },
397
+ {
398
+ in: "query",
399
+ name: "date_to",
400
+ required: false,
401
+ type: "string",
402
+ },
403
+ {
404
+ in: "query",
405
+ name: "limit",
406
+ required: false,
407
+ type: "integer",
408
+ },
409
+ {
410
+ in: "query",
411
+ name: "offset",
412
+ required: false,
413
+ type: "integer",
414
+ },
415
+ ],
416
+ },
417
+ result: {
418
+ body_path: "media",
419
+ },
420
+ retry: "transient",
421
+ synthetic: false,
422
+ },
423
+ {
424
+ actionKey: "media.uploadBinary",
425
+ effect: "local-mutation",
426
+ fields: [
427
+ {
428
+ apiName: "workspace_id",
429
+ body: false,
430
+ location: "query",
431
+ name: "workspaceId",
432
+ },
433
+ {
434
+ apiName: "binary_property_name",
435
+ body: true,
436
+ location: "body",
437
+ name: "binaryPropertyName",
438
+ },
439
+ {
440
+ apiName: "file_name",
441
+ body: true,
442
+ location: "body",
443
+ name: "fileName",
444
+ },
445
+ {
446
+ apiName: "mime_type",
447
+ body: true,
448
+ location: "body",
449
+ name: "mimeType",
450
+ },
451
+ {
452
+ apiName: "alt_text",
453
+ body: true,
454
+ location: "body",
455
+ name: "altText",
456
+ },
457
+ {
458
+ apiName: "retention_class",
459
+ body: true,
460
+ location: "body",
461
+ name: "retentionClass",
462
+ },
463
+ {
464
+ apiName: "asset_kind",
465
+ body: true,
466
+ location: "body",
467
+ name: "assetKind",
468
+ },
469
+ ],
470
+ idempotency: "required",
471
+ method: "POST",
472
+ operationIDs: ["create-media-upload-session", "complete-media-upload-session"],
473
+ pagination: null,
474
+ path: "/media/upload-session",
475
+ request: {
476
+ bodyRequired: true,
477
+ bodySchemaRef: "#/components/schemas/CreateMediaUploadSessionInputBody",
478
+ parameters: [
479
+ {
480
+ in: "header",
481
+ name: "Idempotency-Key",
482
+ required: false,
483
+ type: "string",
484
+ },
485
+ ],
486
+ },
487
+ result: {
488
+ id_path: "id",
489
+ },
490
+ retry: "idempotent-transient",
491
+ synthetic: true,
492
+ },
493
+ {
494
+ actionKey: "publication.getMany",
495
+ effect: "query",
496
+ fields: [
497
+ {
498
+ apiName: "workspace_id",
499
+ body: false,
500
+ location: "query",
501
+ name: "workspaceId",
502
+ },
503
+ {
504
+ apiName: "status",
505
+ body: false,
506
+ location: "query",
507
+ name: "status",
508
+ },
509
+ {
510
+ apiName: "search",
511
+ body: false,
512
+ location: "query",
513
+ name: "search",
514
+ },
515
+ {
516
+ apiName: "limit",
517
+ body: false,
518
+ location: "query",
519
+ name: "limit",
520
+ },
521
+ ],
522
+ idempotency: "none",
523
+ method: "GET",
524
+ operationIDs: ["list-publications"],
525
+ pagination: {
526
+ cursor_parameter: "cursor",
527
+ has_more_header: "X-Has-More",
528
+ limit_parameter: "",
529
+ next_cursor_header: "X-Next-Cursor",
530
+ offset_parameter: "",
531
+ style: "cursor",
532
+ total_path: "",
533
+ },
534
+ path: "/publications",
535
+ request: {
536
+ bodyRequired: false,
537
+ bodySchemaRef: "",
538
+ parameters: [
539
+ {
540
+ in: "query",
541
+ name: "workspace_id",
542
+ required: true,
543
+ type: "string",
544
+ },
545
+ {
546
+ in: "query",
547
+ name: "status",
548
+ required: false,
549
+ type: "string",
550
+ },
551
+ {
552
+ in: "query",
553
+ name: "activity_bucket",
554
+ required: false,
555
+ type: "string",
556
+ },
557
+ {
558
+ in: "query",
559
+ name: "content_profile",
560
+ required: false,
561
+ type: "string",
562
+ },
563
+ {
564
+ in: "query",
565
+ name: "platform",
566
+ required: false,
567
+ type: "string",
568
+ },
569
+ {
570
+ in: "query",
571
+ name: "search",
572
+ required: false,
573
+ type: "string",
574
+ },
575
+ {
576
+ in: "query",
577
+ name: "cursor",
578
+ required: false,
579
+ type: "string",
580
+ },
581
+ {
582
+ in: "query",
583
+ name: "created_from",
584
+ required: false,
585
+ type: "string",
586
+ },
587
+ {
588
+ in: "query",
589
+ name: "created_before",
590
+ required: false,
591
+ type: "string",
592
+ },
593
+ {
594
+ in: "query",
595
+ name: "calendar_from",
596
+ required: false,
597
+ type: "string",
598
+ },
599
+ {
600
+ in: "query",
601
+ name: "calendar_before",
602
+ required: false,
603
+ type: "string",
604
+ },
605
+ {
606
+ in: "query",
607
+ name: "limit",
608
+ required: false,
609
+ type: "integer",
610
+ },
611
+ {
612
+ in: "query",
613
+ name: "offset",
614
+ required: false,
615
+ type: "integer",
616
+ },
617
+ ],
618
+ },
619
+ result: {
620
+ body_path: "",
621
+ },
622
+ retry: "transient",
623
+ synthetic: false,
624
+ },
625
+ {
626
+ actionKey: "publication.create",
627
+ effect: "local-mutation",
628
+ fields: [
629
+ {
630
+ apiName: "workspace_id",
631
+ body: true,
632
+ location: "body",
633
+ name: "workspaceId",
634
+ },
635
+ {
636
+ apiName: "title",
637
+ body: true,
638
+ location: "body",
639
+ name: "title",
640
+ },
641
+ {
642
+ apiName: "source_text",
643
+ body: true,
644
+ location: "body",
645
+ name: "sourceText",
646
+ },
647
+ {
648
+ apiName: "content_profile",
649
+ body: true,
650
+ location: "body",
651
+ name: "contentProfile",
652
+ },
653
+ {
654
+ apiName: "creation_preset",
655
+ body: true,
656
+ location: "body",
657
+ name: "creationPreset",
658
+ },
659
+ {
660
+ apiName: "social_account_ids",
661
+ body: true,
662
+ location: "body",
663
+ name: "accountIds",
664
+ },
665
+ {
666
+ apiName: "media_ids",
667
+ body: true,
668
+ location: "body",
669
+ name: "mediaIds",
670
+ },
671
+ {
672
+ apiName: "source_url",
673
+ body: true,
674
+ location: "body",
675
+ name: "sourceUrl",
676
+ },
677
+ {
678
+ apiName: "scheduled_at",
679
+ body: true,
680
+ location: "body",
681
+ name: "scheduledAt",
682
+ },
683
+ {
684
+ apiName: "random_delay_minutes",
685
+ body: true,
686
+ location: "body",
687
+ name: "randomDelayMinutes",
688
+ },
689
+ {
690
+ apiName: "advanced_json",
691
+ body: true,
692
+ location: "body",
693
+ name: "advancedJson",
694
+ },
695
+ ],
696
+ idempotency: "required",
697
+ method: "POST",
698
+ operationIDs: ["create-publication"],
699
+ pagination: null,
700
+ path: "/publications",
701
+ request: {
702
+ bodyRequired: true,
703
+ bodySchemaRef: "#/components/schemas/CreatePublicationBody",
704
+ parameters: [
705
+ {
706
+ in: "header",
707
+ name: "Idempotency-Key",
708
+ required: false,
709
+ type: "string",
710
+ },
711
+ ],
712
+ },
713
+ result: {
714
+ id_path: "id",
715
+ },
716
+ retry: "idempotent-transient",
717
+ synthetic: false,
718
+ },
719
+ {
720
+ actionKey: "publication.get",
721
+ effect: "query",
722
+ fields: [
723
+ {
724
+ apiName: "id",
725
+ body: false,
726
+ location: "path",
727
+ name: "publicationId",
728
+ },
729
+ ],
730
+ idempotency: "none",
731
+ method: "GET",
732
+ operationIDs: ["get-publication"],
733
+ pagination: null,
734
+ path: "/publications/{id}",
735
+ request: {
736
+ bodyRequired: false,
737
+ bodySchemaRef: "",
738
+ parameters: [
739
+ {
740
+ in: "path",
741
+ name: "id",
742
+ required: true,
743
+ type: "string",
744
+ },
745
+ ],
746
+ },
747
+ result: {
748
+ id_path: "id",
749
+ },
750
+ retry: "transient",
751
+ synthetic: false,
752
+ },
753
+ {
754
+ actionKey: "publication.update",
755
+ effect: "local-mutation",
756
+ fields: [
757
+ {
758
+ apiName: "id",
759
+ body: false,
760
+ location: "path",
761
+ name: "publicationId",
762
+ },
763
+ {
764
+ apiName: "expected_revision",
765
+ body: true,
766
+ location: "body",
767
+ name: "expectedRevision",
768
+ },
769
+ {
770
+ apiName: "title",
771
+ body: true,
772
+ location: "body",
773
+ name: "title",
774
+ },
775
+ {
776
+ apiName: "source_text",
777
+ body: true,
778
+ location: "body",
779
+ name: "sourceText",
780
+ },
781
+ {
782
+ apiName: "scheduled_at",
783
+ body: true,
784
+ location: "body",
785
+ name: "scheduledAt",
786
+ },
787
+ {
788
+ apiName: "advanced_json",
789
+ body: true,
790
+ location: "body",
791
+ name: "advancedJson",
792
+ },
793
+ ],
794
+ idempotency: "required",
795
+ method: "PUT",
796
+ operationIDs: ["update-publication"],
797
+ pagination: null,
798
+ path: "/publications/{id}",
799
+ request: {
800
+ bodyRequired: true,
801
+ bodySchemaRef: "#/components/schemas/PublicationUpdateBody",
802
+ parameters: [
803
+ {
804
+ in: "header",
805
+ name: "Idempotency-Key",
806
+ required: false,
807
+ type: "string",
808
+ },
809
+ {
810
+ in: "path",
811
+ name: "id",
812
+ required: true,
813
+ type: "string",
814
+ },
815
+ ],
816
+ },
817
+ result: {
818
+ id_path: "id",
819
+ },
820
+ retry: "idempotent-transient",
821
+ synthetic: false,
822
+ },
823
+ {
824
+ actionKey: "publication.setRenditions",
825
+ effect: "local-mutation",
826
+ fields: [
827
+ {
828
+ apiName: "id",
829
+ body: false,
830
+ location: "path",
831
+ name: "publicationId",
832
+ },
833
+ {
834
+ apiName: "expected_revision",
835
+ body: true,
836
+ location: "body",
837
+ name: "expectedRevision",
838
+ },
839
+ {
840
+ apiName: "renditions_json",
841
+ body: true,
842
+ location: "body",
843
+ name: "renditionsJson",
844
+ },
845
+ ],
846
+ idempotency: "required",
847
+ method: "PUT",
848
+ operationIDs: ["upsert-publication-renditions"],
849
+ pagination: null,
850
+ path: "/publications/{id}/renditions",
851
+ request: {
852
+ bodyRequired: true,
853
+ bodySchemaRef: "#/components/schemas/UpsertRenditionsInputBody",
854
+ parameters: [
855
+ {
856
+ in: "header",
857
+ name: "Idempotency-Key",
858
+ required: false,
859
+ type: "string",
860
+ },
861
+ {
862
+ in: "path",
863
+ name: "id",
864
+ required: true,
865
+ type: "string",
866
+ },
867
+ ],
868
+ },
869
+ result: {
870
+ id_path: "id",
871
+ },
872
+ retry: "idempotent-transient",
873
+ synthetic: false,
874
+ },
875
+ {
876
+ actionKey: "publication.validate",
877
+ effect: "query",
878
+ fields: [
879
+ {
880
+ apiName: "id",
881
+ body: false,
882
+ location: "path",
883
+ name: "publicationId",
884
+ },
885
+ ],
886
+ idempotency: "none",
887
+ method: "POST",
888
+ operationIDs: ["validate-publication"],
889
+ pagination: null,
890
+ path: "/publications/{id}/validate",
891
+ request: {
892
+ bodyRequired: false,
893
+ bodySchemaRef: "",
894
+ parameters: [
895
+ {
896
+ in: "path",
897
+ name: "id",
898
+ required: true,
899
+ type: "string",
900
+ },
901
+ ],
902
+ },
903
+ result: {
904
+ id_path: "id",
905
+ },
906
+ retry: "transient",
907
+ synthetic: false,
908
+ },
909
+ {
910
+ actionKey: "publication.schedule",
911
+ effect: "local-mutation",
912
+ fields: [
913
+ {
914
+ apiName: "id",
915
+ body: false,
916
+ location: "path",
917
+ name: "publicationId",
918
+ },
919
+ {
920
+ apiName: "expected_revision",
921
+ body: true,
922
+ location: "body",
923
+ name: "expectedRevision",
924
+ },
925
+ ],
926
+ idempotency: "required",
927
+ method: "POST",
928
+ operationIDs: ["schedule-publication"],
929
+ pagination: null,
930
+ path: "/publications/{id}/schedule",
931
+ request: {
932
+ bodyRequired: true,
933
+ bodySchemaRef: "#/components/schemas/PublicationMutationActionInputBody",
934
+ parameters: [
935
+ {
936
+ in: "header",
937
+ name: "Idempotency-Key",
938
+ required: false,
939
+ type: "string",
940
+ },
941
+ {
942
+ in: "path",
943
+ name: "id",
944
+ required: true,
945
+ type: "string",
946
+ },
947
+ ],
948
+ },
949
+ result: {
950
+ job_id_path: "job_id",
951
+ },
952
+ retry: "idempotent-transient",
953
+ synthetic: false,
954
+ },
955
+ {
956
+ actionKey: "publication.cancel",
957
+ effect: "local-mutation",
958
+ fields: [
959
+ {
960
+ apiName: "id",
961
+ body: false,
962
+ location: "path",
963
+ name: "publicationId",
964
+ },
965
+ {
966
+ apiName: "expected_revision",
967
+ body: true,
968
+ location: "body",
969
+ name: "expectedRevision",
970
+ },
971
+ ],
972
+ idempotency: "required",
973
+ method: "POST",
974
+ operationIDs: ["cancel-publication"],
975
+ pagination: null,
976
+ path: "/publications/{id}/cancel",
977
+ request: {
978
+ bodyRequired: true,
979
+ bodySchemaRef: "#/components/schemas/PublicationMutationActionInputBody",
980
+ parameters: [
981
+ {
982
+ in: "header",
983
+ name: "Idempotency-Key",
984
+ required: false,
985
+ type: "string",
986
+ },
987
+ {
988
+ in: "path",
989
+ name: "id",
990
+ required: true,
991
+ type: "string",
992
+ },
993
+ ],
994
+ },
995
+ result: {
996
+ job_id_path: "job_id",
997
+ },
998
+ retry: "idempotent-transient",
999
+ synthetic: false,
1000
+ },
1001
+ {
1002
+ actionKey: "publication.publishNow",
1003
+ effect: "external-action",
1004
+ fields: [
1005
+ {
1006
+ apiName: "id",
1007
+ body: false,
1008
+ location: "path",
1009
+ name: "publicationId",
1010
+ },
1011
+ {
1012
+ apiName: "expected_revision",
1013
+ body: true,
1014
+ location: "body",
1015
+ name: "expectedRevision",
1016
+ },
1017
+ ],
1018
+ idempotency: "required",
1019
+ method: "POST",
1020
+ operationIDs: ["publish-publication-now"],
1021
+ pagination: null,
1022
+ path: "/publications/{id}/publish-now",
1023
+ request: {
1024
+ bodyRequired: true,
1025
+ bodySchemaRef: "#/components/schemas/PublicationMutationActionInputBody",
1026
+ parameters: [
1027
+ {
1028
+ in: "header",
1029
+ name: "Idempotency-Key",
1030
+ required: false,
1031
+ type: "string",
1032
+ },
1033
+ {
1034
+ in: "path",
1035
+ name: "id",
1036
+ required: true,
1037
+ type: "string",
1038
+ },
1039
+ ],
1040
+ },
1041
+ result: {
1042
+ job_id_path: "job_id",
1043
+ },
1044
+ retry: "idempotent-transient",
1045
+ synthetic: false,
1046
+ },
1047
+ {
1048
+ actionKey: "publication.retryFailedRenditions",
1049
+ effect: "external-action",
1050
+ fields: [
1051
+ {
1052
+ apiName: "id",
1053
+ body: false,
1054
+ location: "path",
1055
+ name: "publicationId",
1056
+ },
1057
+ ],
1058
+ idempotency: "required",
1059
+ method: "POST",
1060
+ operationIDs: ["retry-failed-publication-renditions"],
1061
+ pagination: null,
1062
+ path: "/publications/{id}/retry-failed",
1063
+ request: {
1064
+ bodyRequired: false,
1065
+ bodySchemaRef: "",
1066
+ parameters: [
1067
+ {
1068
+ in: "header",
1069
+ name: "Idempotency-Key",
1070
+ required: false,
1071
+ type: "string",
1072
+ },
1073
+ {
1074
+ in: "path",
1075
+ name: "id",
1076
+ required: true,
1077
+ type: "string",
1078
+ },
1079
+ ],
1080
+ },
1081
+ result: {
1082
+ job_id_path: "job_id",
1083
+ },
1084
+ retry: "idempotent-transient",
1085
+ synthetic: false,
1086
+ },
1087
+ {
1088
+ actionKey: "publication.getEvents",
1089
+ effect: "query",
1090
+ fields: [
1091
+ {
1092
+ apiName: "id",
1093
+ body: false,
1094
+ location: "path",
1095
+ name: "publicationId",
1096
+ },
1097
+ {
1098
+ apiName: "limit",
1099
+ body: false,
1100
+ location: "query",
1101
+ name: "limit",
1102
+ },
1103
+ ],
1104
+ idempotency: "none",
1105
+ method: "GET",
1106
+ operationIDs: ["list-publication-events"],
1107
+ pagination: {
1108
+ cursor_parameter: "cursor",
1109
+ has_more_header: "X-Has-More",
1110
+ limit_parameter: "",
1111
+ next_cursor_header: "X-Next-Cursor",
1112
+ offset_parameter: "",
1113
+ style: "cursor",
1114
+ total_path: "",
1115
+ },
1116
+ path: "/publications/{id}/events",
1117
+ request: {
1118
+ bodyRequired: false,
1119
+ bodySchemaRef: "",
1120
+ parameters: [
1121
+ {
1122
+ in: "path",
1123
+ name: "id",
1124
+ required: true,
1125
+ type: "string",
1126
+ },
1127
+ {
1128
+ in: "query",
1129
+ name: "limit",
1130
+ required: false,
1131
+ type: "integer",
1132
+ },
1133
+ {
1134
+ in: "query",
1135
+ name: "cursor",
1136
+ required: false,
1137
+ type: "string",
1138
+ },
1139
+ ],
1140
+ },
1141
+ result: {
1142
+ body_path: "",
1143
+ },
1144
+ retry: "transient",
1145
+ synthetic: false,
1146
+ },
1147
+ {
1148
+ actionKey: "job.get",
1149
+ effect: "query",
1150
+ fields: [
1151
+ {
1152
+ apiName: "job_id",
1153
+ body: true,
1154
+ location: "body",
1155
+ name: "jobId",
1156
+ },
1157
+ ],
1158
+ idempotency: "none",
1159
+ method: "GET",
1160
+ operationIDs: ["get-job"],
1161
+ pagination: null,
1162
+ path: "/jobs/{id}",
1163
+ request: {
1164
+ bodyRequired: false,
1165
+ bodySchemaRef: "",
1166
+ parameters: [
1167
+ {
1168
+ in: "path",
1169
+ name: "id",
1170
+ required: true,
1171
+ type: "string",
1172
+ },
1173
+ ],
1174
+ },
1175
+ result: {
1176
+ id_path: "$.id",
1177
+ },
1178
+ retry: "transient",
1179
+ synthetic: false,
1180
+ },
1181
+ ];
1182
+ function findGeneratedAction(resource, operation) {
1183
+ return exports.generatedActionRequestMappers.find((action) => action.actionKey === resource + "." + operation);
1184
+ }
1185
+ //# sourceMappingURL=requestMappers.js.map