@epilot/sdk 2.1.8 → 2.1.9

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 (116) hide show
  1. package/definitions/customer-portal-runtime.json +1 -1
  2. package/definitions/customer-portal.json +261 -19
  3. package/dist/apis/access-token.cjs +6 -6
  4. package/dist/apis/access-token.js +1 -1
  5. package/dist/apis/address-suggestions.cjs +6 -6
  6. package/dist/apis/address-suggestions.js +1 -1
  7. package/dist/apis/address.cjs +6 -6
  8. package/dist/apis/address.js +1 -1
  9. package/dist/apis/ai-agents.cjs +6 -6
  10. package/dist/apis/ai-agents.js +1 -1
  11. package/dist/apis/app.cjs +6 -6
  12. package/dist/apis/app.js +1 -1
  13. package/dist/apis/audit-logs.cjs +6 -6
  14. package/dist/apis/audit-logs.js +1 -1
  15. package/dist/apis/automation.cjs +6 -6
  16. package/dist/apis/automation.js +1 -1
  17. package/dist/apis/billing.cjs +6 -6
  18. package/dist/apis/billing.js +1 -1
  19. package/dist/apis/blueprint-manifest.cjs +6 -6
  20. package/dist/apis/blueprint-manifest.js +1 -1
  21. package/dist/apis/consent.cjs +6 -6
  22. package/dist/apis/consent.js +1 -1
  23. package/dist/apis/customer-portal.cjs +8 -8
  24. package/dist/apis/customer-portal.d.cts +2 -2
  25. package/dist/apis/customer-portal.d.ts +2 -2
  26. package/dist/apis/customer-portal.js +2 -2
  27. package/dist/apis/dashboard.cjs +6 -6
  28. package/dist/apis/dashboard.js +1 -1
  29. package/dist/apis/data-management.cjs +6 -6
  30. package/dist/apis/data-management.js +1 -1
  31. package/dist/apis/deduplication.cjs +6 -6
  32. package/dist/apis/deduplication.js +1 -1
  33. package/dist/apis/design.cjs +6 -6
  34. package/dist/apis/design.js +1 -1
  35. package/dist/apis/document.cjs +6 -6
  36. package/dist/apis/document.js +1 -1
  37. package/dist/apis/email-settings.cjs +6 -6
  38. package/dist/apis/email-settings.js +1 -1
  39. package/dist/apis/email-template.cjs +6 -6
  40. package/dist/apis/email-template.js +1 -1
  41. package/dist/apis/entity-mapping.cjs +6 -6
  42. package/dist/apis/entity-mapping.js +1 -1
  43. package/dist/apis/entity.cjs +6 -6
  44. package/dist/apis/entity.js +1 -1
  45. package/dist/apis/environments.cjs +6 -6
  46. package/dist/apis/environments.js +1 -1
  47. package/dist/apis/erp-integration.cjs +6 -6
  48. package/dist/apis/erp-integration.js +1 -1
  49. package/dist/apis/event-catalog.cjs +6 -6
  50. package/dist/apis/event-catalog.js +1 -1
  51. package/dist/apis/file.cjs +6 -6
  52. package/dist/apis/file.js +1 -1
  53. package/dist/apis/iban.cjs +6 -6
  54. package/dist/apis/iban.js +1 -1
  55. package/dist/apis/journey.cjs +6 -6
  56. package/dist/apis/journey.js +1 -1
  57. package/dist/apis/kanban.cjs +6 -6
  58. package/dist/apis/kanban.js +1 -1
  59. package/dist/apis/message.cjs +6 -6
  60. package/dist/apis/message.js +1 -1
  61. package/dist/apis/metering.cjs +6 -6
  62. package/dist/apis/metering.js +1 -1
  63. package/dist/apis/notes.cjs +6 -6
  64. package/dist/apis/notes.js +1 -1
  65. package/dist/apis/notification.cjs +6 -6
  66. package/dist/apis/notification.js +1 -1
  67. package/dist/apis/organization.cjs +6 -6
  68. package/dist/apis/organization.js +1 -1
  69. package/dist/apis/partner-directory.cjs +6 -6
  70. package/dist/apis/partner-directory.js +1 -1
  71. package/dist/apis/permissions.cjs +6 -6
  72. package/dist/apis/permissions.js +1 -1
  73. package/dist/apis/pricing-tier.cjs +6 -6
  74. package/dist/apis/pricing-tier.js +1 -1
  75. package/dist/apis/pricing.cjs +6 -6
  76. package/dist/apis/pricing.js +1 -1
  77. package/dist/apis/purpose.cjs +6 -6
  78. package/dist/apis/purpose.js +1 -1
  79. package/dist/apis/sandbox.cjs +6 -6
  80. package/dist/apis/sandbox.js +1 -1
  81. package/dist/apis/submission.cjs +6 -6
  82. package/dist/apis/submission.js +1 -1
  83. package/dist/apis/targeting.cjs +6 -6
  84. package/dist/apis/targeting.js +1 -1
  85. package/dist/apis/template-variables.cjs +6 -6
  86. package/dist/apis/template-variables.js +1 -1
  87. package/dist/apis/user.cjs +6 -6
  88. package/dist/apis/user.js +1 -1
  89. package/dist/apis/validation-rules.cjs +6 -6
  90. package/dist/apis/validation-rules.js +1 -1
  91. package/dist/apis/webhooks.cjs +6 -6
  92. package/dist/apis/webhooks.js +1 -1
  93. package/dist/apis/workflow-definition.cjs +6 -6
  94. package/dist/apis/workflow-definition.js +1 -1
  95. package/dist/apis/workflow.cjs +6 -6
  96. package/dist/apis/workflow.js +1 -1
  97. package/dist/{chunk-V3SZ5A6F.js → chunk-6D5AZZ2F.js} +2 -2
  98. package/dist/{chunk-GHAEATNY.cjs → chunk-FXN6IHCZ.cjs} +2 -2
  99. package/dist/chunk-XT54462S.js +14 -0
  100. package/dist/chunk-YWDWPVIC.cjs +14 -0
  101. package/dist/customer-portal-AEFMNNYP.cjs +7 -0
  102. package/dist/customer-portal-Y3GLUVMW.js +7 -0
  103. package/dist/{customer-portal-runtime-MRVZ7JR4.js → customer-portal-runtime-374XJ6LB.js} +1 -1
  104. package/dist/{customer-portal-runtime-VGK7RMLC.cjs → customer-portal-runtime-3LTXCTKD.cjs} +2 -2
  105. package/dist/{customer-portal.d-uN6lOpvy.d.cts → customer-portal.d-BJNWYMt9.d.cts} +221 -16
  106. package/dist/{customer-portal.d-uN6lOpvy.d.ts → customer-portal.d-BJNWYMt9.d.ts} +221 -16
  107. package/dist/index.cjs +10 -10
  108. package/dist/index.d.cts +1 -1
  109. package/dist/index.d.ts +1 -1
  110. package/dist/index.js +2 -2
  111. package/docs/customer-portal.md +245 -16
  112. package/package.json +1 -1
  113. package/dist/chunk-5NKXJA43.js +0 -14
  114. package/dist/chunk-COQMJFAB.cjs +0 -14
  115. package/dist/customer-portal-5JVN4Y5Y.js +0 -7
  116. package/dist/customer-portal-T7KIY3AE.cjs +0 -7
@@ -39,6 +39,9 @@ const { data } = await customerPortalClient.upsertPortal(...)
39
39
  - [`getEmailTemplates`](#getemailtemplates)
40
40
  - [`upsertEmailTemplatesByPortalId`](#upsertemailtemplatesbyportalid)
41
41
  - [`getEmailTemplatesByPortalId`](#getemailtemplatesbyportalid)
42
+ - [`getPortalWidgetsV3`](#getportalwidgetsv3)
43
+ - [`upsertPortalWidgetV3`](#upsertportalwidgetv3)
44
+ - [`savePortalFilesV3`](#saveportalfilesv3)
42
45
  - [`replaceECPTemplateVariables`](#replaceecptemplatevariables)
43
46
  - [`extraPermissionAttributes`](#extrapermissionattributes)
44
47
  - [`validateCaaRecords`](#validatecaarecords)
@@ -714,7 +717,10 @@ const { data } = await client.createUser(
714
717
 
715
718
  ### `createUserV3`
716
719
 
717
- Registers a portal user with portal id
720
+ Registers a portal user.
721
+ Supports two identification methods:
722
+ 1. Using portal_id
723
+ 2. Using domain
718
724
 
719
725
  `POST /v3/portal/public/user`
720
726
 
@@ -722,6 +728,7 @@ Registers a portal user with portal id
722
728
  const { data } = await client.createUserV3(
723
729
  {
724
730
  portal_id: 'example',
731
+ domain: 'example',
725
732
  },
726
733
  {
727
734
  email: 'testemail921@yopmail.com',
@@ -2939,6 +2946,201 @@ const { data } = await client.getEmailTemplatesByPortalId({
2939
2946
 
2940
2947
  ---
2941
2948
 
2949
+ ### `getPortalWidgetsV3`
2950
+
2951
+ Retrieves the widgets of a portal by portal_id.
2952
+
2953
+ `GET /v3/portal/widgets`
2954
+
2955
+ ```ts
2956
+ const { data } = await client.getPortalWidgetsV3({
2957
+ portal_id: 'example',
2958
+ contract_id: 'example',
2959
+ })
2960
+ ```
2961
+
2962
+ <details>
2963
+ <summary>Response</summary>
2964
+
2965
+ ```json
2966
+ {
2967
+ "widgets": [
2968
+ {
2969
+ "id": "string",
2970
+ "type": "ACTION_WIDGET",
2971
+ "listIndex": 0,
2972
+ "headline": {
2973
+ "en": "string",
2974
+ "de": "string"
2975
+ },
2976
+ "subHeadline": {
2977
+ "en": "string",
2978
+ "de": "string"
2979
+ },
2980
+ "schema": "string"
2981
+ },
2982
+ {
2983
+ "id": "string",
2984
+ "type": "ACTION_WIDGET",
2985
+ "listIndex": 0,
2986
+ "headline": {
2987
+ "en": "string",
2988
+ "de": "string"
2989
+ },
2990
+ "subHeadline": {
2991
+ "en": "string",
2992
+ "de": "string"
2993
+ },
2994
+ "content": "string"
2995
+ }
2996
+ ]
2997
+ }
2998
+ ```
2999
+
3000
+ </details>
3001
+
3002
+ ---
3003
+
3004
+ ### `upsertPortalWidgetV3`
3005
+
3006
+ Upsert widget for a portal by portal_id.
3007
+
3008
+ `POST /v3/portal/widgets`
3009
+
3010
+ ```ts
3011
+ const { data } = await client.upsertPortalWidgetV3(
3012
+ {
3013
+ portal_id: 'example',
3014
+ },
3015
+ {
3016
+ widgets: [
3017
+ {
3018
+ id: 'string',
3019
+ type: 'ACTION_WIDGET',
3020
+ listIndex: 0,
3021
+ headline: {
3022
+ en: 'string',
3023
+ de: 'string'
3024
+ },
3025
+ subHeadline: {
3026
+ en: 'string',
3027
+ de: 'string'
3028
+ },
3029
+ schema: 'string'
3030
+ },
3031
+ {
3032
+ id: 'string',
3033
+ type: 'ACTION_WIDGET',
3034
+ listIndex: 0,
3035
+ headline: {
3036
+ en: 'string',
3037
+ de: 'string'
3038
+ },
3039
+ subHeadline: {
3040
+ en: 'string',
3041
+ de: 'string'
3042
+ },
3043
+ content: 'string'
3044
+ },
3045
+ /* ... 8 more */
3046
+ ]
3047
+ },
3048
+ )
3049
+ ```
3050
+
3051
+ <details>
3052
+ <summary>Response</summary>
3053
+
3054
+ ```json
3055
+ {
3056
+ "widgets": [
3057
+ {
3058
+ "id": "string",
3059
+ "type": "ACTION_WIDGET",
3060
+ "listIndex": 0,
3061
+ "headline": {
3062
+ "en": "string",
3063
+ "de": "string"
3064
+ },
3065
+ "subHeadline": {
3066
+ "en": "string",
3067
+ "de": "string"
3068
+ },
3069
+ "schema": "string"
3070
+ },
3071
+ {
3072
+ "id": "string",
3073
+ "type": "ACTION_WIDGET",
3074
+ "listIndex": 0,
3075
+ "headline": {
3076
+ "en": "string",
3077
+ "de": "string"
3078
+ },
3079
+ "subHeadline": {
3080
+ "en": "string",
3081
+ "de": "string"
3082
+ },
3083
+ "content": "string"
3084
+ }
3085
+ ]
3086
+ }
3087
+ ```
3088
+
3089
+ </details>
3090
+
3091
+ ---
3092
+
3093
+ ### `savePortalFilesV3`
3094
+
3095
+ Add files to portal by portal_id
3096
+
3097
+ `POST /v3/portal/portal/files`
3098
+
3099
+ ```ts
3100
+ const { data } = await client.savePortalFilesV3(
3101
+ {
3102
+ portal_id: 'example',
3103
+ },
3104
+ {
3105
+ origin: 'string',
3106
+ files: [
3107
+ {
3108
+ filename: 12345,
3109
+ file_type: 'orderRightTeaser',
3110
+ _tags: 12345,
3111
+ s3ref: {
3112
+ bucket: 12345,
3113
+ key: 12345
3114
+ }
3115
+ }
3116
+ ]
3117
+ },
3118
+ )
3119
+ ```
3120
+
3121
+ <details>
3122
+ <summary>Response</summary>
3123
+
3124
+ ```json
3125
+ {
3126
+ "createdFiles": [
3127
+ {
3128
+ "_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
3129
+ "_title": "Example Entity",
3130
+ "_org": "123",
3131
+ "_tags": ["example", "mock"],
3132
+ "_created_at": "2021-02-09T12:41:43.662Z",
3133
+ "_updated_at": "2021-02-09T12:41:43.662Z",
3134
+ "_schema": "file"
3135
+ }
3136
+ ]
3137
+ }
3138
+ ```
3139
+
3140
+ </details>
3141
+
3142
+ ---
3143
+
2942
3144
  ### `replaceECPTemplateVariables`
2943
3145
 
2944
3146
  Replaces the template variables of a portal
@@ -3398,6 +3600,9 @@ const { data } = await client.checkContactExists(
3398
3600
  ### `checkContactExistsV3`
3399
3601
 
3400
3602
  True if contact with given identifiers exists.
3603
+ Supports two identification methods:
3604
+ 1. Using portal_id
3605
+ 2. Using domain
3401
3606
 
3402
3607
  `POST /v3/portal/public/contact/exists`
3403
3608
 
@@ -3405,6 +3610,7 @@ True if contact with given identifiers exists.
3405
3610
  const { data } = await client.checkContactExistsV3(
3406
3611
  {
3407
3612
  portal_id: 'example',
3613
+ domain: 'example',
3408
3614
  },
3409
3615
  {
3410
3616
  org_id: 728,
@@ -3713,7 +3919,10 @@ const { data } = await client.userExists({
3713
3919
 
3714
3920
  ### `userExistsV3`
3715
3921
 
3716
- Checks whether a user exists in the portal
3922
+ Checks whether a user exists in the portal.
3923
+ Supports two identification methods:
3924
+ 1. Using org_id + portal_id
3925
+ 2. Using domain
3717
3926
 
3718
3927
  `GET /v3/portal/public/user/exists`
3719
3928
 
@@ -3722,6 +3931,7 @@ const { data } = await client.userExistsV3({
3722
3931
  email: 'example',
3723
3932
  org_id: 'example',
3724
3933
  portal_id: 'example',
3934
+ domain: 'example',
3725
3935
  })
3726
3936
  ```
3727
3937
 
@@ -4483,7 +4693,8 @@ const { data } = await client.loginToPortalAsUser(
4483
4693
  {
4484
4694
  email: 'portal-customer@email.com',
4485
4695
  origin: 'string',
4486
- portal_id: 'string'
4696
+ portal_id: 'string',
4697
+ domain: 'string'
4487
4698
  },
4488
4699
  )
4489
4700
  ```
@@ -4530,7 +4741,10 @@ const { data } = await client.triggerEntityAccessEvent({
4530
4741
 
4531
4742
  ### `triggerEntityAccessEventV3`
4532
4743
 
4533
- Trigger entity access event for a portal user
4744
+ Trigger entity access event for a portal user.
4745
+ Supports two identification methods:
4746
+ 1. Using portal_id
4747
+ 2. Using domain
4534
4748
 
4535
4749
  `POST /v3/portal/entity/{schema}/access`
4536
4750
 
@@ -4539,6 +4753,7 @@ const { data } = await client.triggerEntityAccessEventV3({
4539
4753
  schema: 'example',
4540
4754
  entity_id: 'example',
4541
4755
  portal_id: 'example',
4756
+ domain: 'example',
4542
4757
  })
4543
4758
  ```
4544
4759
 
@@ -5078,6 +5293,7 @@ const { data } = await client.ssoLoginV3(
5078
5293
  {
5079
5294
  portal_id: 'example',
5080
5295
  org_id: 'example',
5296
+ domain: 'example',
5081
5297
  contact_id: 'example',
5082
5298
  },
5083
5299
  {
@@ -5200,7 +5416,8 @@ const { data } = await client.getPortalPage({
5200
5416
  "is_entry_route": false,
5201
5417
  "is_deleted": false,
5202
5418
  "id": "c495fef9-eeca-4019-a989-8390dcd9825b",
5203
- "last_modified_at": "2021-02-09T12:41:43.662Z"
5419
+ "last_modified_at": "2021-02-09T12:41:43.662Z",
5420
+ "portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c"
5204
5421
  }
5205
5422
  ```
5206
5423
 
@@ -5280,7 +5497,8 @@ const { data } = await client.updatePortalPage(
5280
5497
  "is_entry_route": false,
5281
5498
  "is_deleted": false,
5282
5499
  "id": "c495fef9-eeca-4019-a989-8390dcd9825b",
5283
- "last_modified_at": "2021-02-09T12:41:43.662Z"
5500
+ "last_modified_at": "2021-02-09T12:41:43.662Z",
5501
+ "portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c"
5284
5502
  }
5285
5503
  ```
5286
5504
 
@@ -5350,7 +5568,8 @@ const { data } = await client.getPortalPages({
5350
5568
  "is_entry_route": false,
5351
5569
  "is_deleted": false,
5352
5570
  "id": "c495fef9-eeca-4019-a989-8390dcd9825b",
5353
- "last_modified_at": "2021-02-09T12:41:43.662Z"
5571
+ "last_modified_at": "2021-02-09T12:41:43.662Z",
5572
+ "portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c"
5354
5573
  }
5355
5574
  ]
5356
5575
  ```
@@ -5431,7 +5650,8 @@ const { data } = await client.createPortalPage(
5431
5650
  "is_entry_route": false,
5432
5651
  "is_deleted": false,
5433
5652
  "id": "c495fef9-eeca-4019-a989-8390dcd9825b",
5434
- "last_modified_at": "2021-02-09T12:41:43.662Z"
5653
+ "last_modified_at": "2021-02-09T12:41:43.662Z",
5654
+ "portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c"
5435
5655
  }
5436
5656
  ```
5437
5657
 
@@ -5485,7 +5705,8 @@ const { data } = await client.getPublicPages({
5485
5705
  "is_entry_route": false,
5486
5706
  "is_deleted": false,
5487
5707
  "id": "c495fef9-eeca-4019-a989-8390dcd9825b",
5488
- "last_modified_at": "2021-02-09T12:41:43.662Z"
5708
+ "last_modified_at": "2021-02-09T12:41:43.662Z",
5709
+ "portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c"
5489
5710
  }
5490
5711
  ]
5491
5712
  ```
@@ -5532,7 +5753,8 @@ const { data } = await client.interpolatePortalPages(
5532
5753
  is_entry_route: false,
5533
5754
  is_deleted: false,
5534
5755
  id: 'c495fef9-eeca-4019-a989-8390dcd9825b',
5535
- last_modified_at: '2021-02-09T12:41:43.662Z'
5756
+ last_modified_at: '2021-02-09T12:41:43.662Z',
5757
+ portal_id: '453ad7bf-86d5-46c8-8252-bcc868df5e3c'
5536
5758
  }
5537
5759
  ],
5538
5760
  context_entities: [
@@ -5578,7 +5800,8 @@ const { data } = await client.interpolatePortalPages(
5578
5800
  "is_entry_route": false,
5579
5801
  "is_deleted": false,
5580
5802
  "id": "c495fef9-eeca-4019-a989-8390dcd9825b",
5581
- "last_modified_at": "2021-02-09T12:41:43.662Z"
5803
+ "last_modified_at": "2021-02-09T12:41:43.662Z",
5804
+ "portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c"
5582
5805
  }
5583
5806
  ]
5584
5807
  ```
@@ -5629,7 +5852,8 @@ const { data } = await client.getDefaultPages()
5629
5852
  "is_entry_route": false,
5630
5853
  "is_deleted": false,
5631
5854
  "id": "c495fef9-eeca-4019-a989-8390dcd9825b",
5632
- "last_modified_at": "2021-02-09T12:41:43.662Z"
5855
+ "last_modified_at": "2021-02-09T12:41:43.662Z",
5856
+ "portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c"
5633
5857
  }
5634
5858
  ]
5635
5859
  ```
@@ -6442,7 +6666,8 @@ const { data } = await client.createPortalConfig(
6442
6666
  "is_entry_route": false,
6443
6667
  "is_deleted": false,
6444
6668
  "id": "c495fef9-eeca-4019-a989-8390dcd9825b",
6445
- "last_modified_at": "2021-02-09T12:41:43.662Z"
6669
+ "last_modified_at": "2021-02-09T12:41:43.662Z",
6670
+ "portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c"
6446
6671
  }
6447
6672
  ]
6448
6673
  }
@@ -6680,7 +6905,8 @@ const { data } = await client.getPortalConfigV3({
6680
6905
  "is_entry_route": false,
6681
6906
  "is_deleted": false,
6682
6907
  "id": "c495fef9-eeca-4019-a989-8390dcd9825b",
6683
- "last_modified_at": "2021-02-09T12:41:43.662Z"
6908
+ "last_modified_at": "2021-02-09T12:41:43.662Z",
6909
+ "portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c"
6684
6910
  }
6685
6911
  ]
6686
6912
  }
@@ -6914,7 +7140,8 @@ const { data } = await client.putPortalConfig(
6914
7140
  is_entry_route: false,
6915
7141
  is_deleted: false,
6916
7142
  id: 'c495fef9-eeca-4019-a989-8390dcd9825b',
6917
- last_modified_at: '2021-02-09T12:41:43.662Z'
7143
+ last_modified_at: '2021-02-09T12:41:43.662Z',
7144
+ portal_id: '453ad7bf-86d5-46c8-8252-bcc868df5e3c'
6918
7145
  }
6919
7146
  ]
6920
7147
  },
@@ -7137,7 +7364,8 @@ const { data } = await client.putPortalConfig(
7137
7364
  "is_entry_route": false,
7138
7365
  "is_deleted": false,
7139
7366
  "id": "c495fef9-eeca-4019-a989-8390dcd9825b",
7140
- "last_modified_at": "2021-02-09T12:41:43.662Z"
7367
+ "last_modified_at": "2021-02-09T12:41:43.662Z",
7368
+ "portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c"
7141
7369
  }
7142
7370
  ]
7143
7371
  }
@@ -10258,6 +10486,7 @@ type Page = {
10258
10486
  is_deleted?: boolean
10259
10487
  id?: string // uuid
10260
10488
  last_modified_at?: string // date-time
10489
+ portal_id?: string
10261
10490
  }
10262
10491
  ```
10263
10492
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/sdk",
3
- "version": "2.1.8",
3
+ "version": "2.1.9",
4
4
  "description": "JavaScript/TypeScript SDK for epilot APIs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -1,14 +0,0 @@
1
- import {
2
- __commonJS
3
- } from "./chunk-YPSWSI3M.js";
4
-
5
- // src/definitions/customer-portal-runtime.json
6
- var require_customer_portal_runtime = __commonJS({
7
- "src/definitions/customer-portal-runtime.json"(exports, module) {
8
- module.exports = { s: "https://customer-portal-api.sls.epilot.io", o: [["upsertPortal", "post", "/v2/portal/portal", [["origin", "q", true], ["portal_id", "q"]], 1], ["createUser", "post", "/v2/portal/public/user", [["origin", "q", true]], 1], ["createUserV3", "post", "/v3/portal/public/user", [["portal_id", "q", true]], 1], ["validateToken", "post", "/v2/portal/token/validate"], ["revokeToken", "post", "/v2/portal/token/revoke", null, 1], ["getPortalConfigByDomain", "get", "/v2/portal/public/config", [["domain", "q", true]]], ["getPortalConfig", "get", "/v2/portal/config", [["origin", "q"]]], ["deletePortal", "delete", "/v2/portal/config", [["origin", "q", true]]], ["getPortalExtensions", "get", "/v2/portal/extensions", [["origin", "q"]]], ["getPublicPortalExtensionDetails", "get", "/v2/portal/public/extensions", [["org_id", "q", true], ["origin", "q", true]]], ["getPortalExtensionsV3", "get", "/v3/portal/extensions", [["portal_id", "q", true]]], ["getPublicPortalExtensionDetailsV3", "get", "/v3/portal/public/extensions", [["org_id", "q"], ["portal_id", "q"], ["domain", "q"]]], ["getConsumption", "get", "/v2/portal/consumption", [["app_id", "q"], ["extensionId", "q", true], ["hookId", "q", true], ["meter_id", "q"], ["from", "q", true], ["to", "q", true], ["interval", "q", true], ["context_entities", "q"]]], ["getCosts", "get", "/v2/portal/costs", [["app_id", "q"], ["extensionId", "q", true], ["hookId", "q", true], ["meter_id", "q"], ["from", "q", true], ["to", "q", true], ["interval", "q", true], ["context_entities", "q"]]], ["getPrices", "get", "/v2/portal/prices", [["app_id", "q"], ["extensionId", "q", true], ["hookId", "q", true], ["meter_id", "q"], ["from", "q", true], ["to", "q", true], ["interval", "q", true], ["context_entities", "q"]]], ["getExternalLinks", "get", "/v2/portal/external-links", [["origin", "q"], ["contactId", "q"]]], ["getResolvedExternalLink", "get", "/v2/portal/resolve:external-link/{id}", [["id", "p", true], ["origin", "q"], ["contactId", "q"]]], ["getExternalLinksV3", "get", "/v3/portal/external-links", [["portal_id", "q"], ["contactId", "q"]]], ["getResolvedExternalLinkV3", "get", "/v3/portal/resolve:external-link/{id}", [["id", "p", true], ["portal_id", "q"], ["contactId", "q"]]], ["getResolvedSeamlessLink", "get", "/v2/portal/resolve:seamless-link", [["app_id", "q"], ["extension_id", "q", true], ["link_id", "q", true], ["context_entities", "q"]]], ["getPublicPortalConfig", "get", "/v2/portal/public/portal/config", [["org_id", "q", true], ["origin", "q", true]]], ["getOrgPortalConfig", "get", "/v2/portal/org/portal/config", [["origin", "q", true]]], ["getPublicPortalConfigV3", "get", "/v3/portal/public/portal/config", [["org_id", "q", true], ["portal_id", "q", true]]], ["getOrgPortalConfigV3", "get", "/v3/portal/org/portal/config", [["portal_id", "q", true]]], ["getAllPortalConfigs", "get", "/v2/portal/configs"], ["upsertEmailTemplates", "post", "/v2/portal/email-templates", [["origin", "q", true]], 1], ["getEmailTemplates", "get", "/v2/portal/email-templates", [["origin", "q", true]]], ["upsertEmailTemplatesByPortalId", "post", "/v3/portal/email-templates/{portal_id}", [["portal_id", "p", true]], 1], ["getEmailTemplatesByPortalId", "get", "/v3/portal/email-templates/{portal_id}", [["portal_id", "p", true]]], ["getPublicPortalWidgets", "get", "/v2/portal/public-widgets", [["org_id", "q", true], ["origin", "q", true]]], ["upsertPortalWidget", "post", "/v2/portal/widgets", [["origin", "q", true]], 1], ["getPortalWidgets", "get", "/v2/portal/widgets", [["origin", "q"], ["contract_id", "q"]]], ["replaceECPTemplateVariables", "post", "/v2/portal/replace-ecp-template-variables", null, 1], ["getOrganizationSettings", "get", "/v2/portal/org/settings"], ["getSchemas", "get", "/v2/portal/schemas"], ["getSchemasByDomain", "get", "/v2/portal/public/schemas", [["domain", "q", true]]], ["getOrganizationSettingsByDomain", "get", "/v2/portal/public/org/settings", [["domain", "q", true]]], ["extraPermissionAttributes", "get", "/v2/portal/extra-permission-attributes"], ["validateCaaRecords", "post", "/v2/portal/validate/caa-records", [["origin", "q", true]]], ["validateCaaRecordsV3", "post", "/v3/portal/validate/caa-records", [["portal_id", "q", true]]], ["getContact", "get", "/v2/portal/contact"], ["updateContact", "patch", "/v2/portal/contact", null, 1], ["getECPContact", "get", "/v2/portal/ecp/contact", [["id", "q", true]]], ["checkContactExists", "post", "/v2/portal/public/contact/exists", [["origin", "q", true]], 1], ["checkContactExistsV3", "post", "/v3/portal/public/contact/exists", [["portal_id", "q", true]], 1], ["getValidSecondaryAttributes", "get", "/v2/portal/contact/valid/secondary/attributes"], ["getPortalUser", "get", "/v2/portal/user"], ["updatePortalUser", "patch", "/v2/portal/user", null, 1], ["deletePortalUser", "delete", "/v2/portal/user"], ["updatePortalUserEmail", "put", "/v2/portal/user/update/email", null, 1], ["resendConfirmationEmail", "post", "/v2/portal/user/resend/confirmation-email/{id}", [["id", "p", true]]], ["fetchPortalUsersByRelatedEntity", "get", "/v2/portal/users/by-related-entity", [["entity_id", "q", true], ["slug", "q", true]]], ["confirmUser", "get", "/v2/portal/user/confirm", [["confirmation_link_token", "q", true], ["use_redirect", "q"]]], ["confirmUserWithUserId", "get", "/v2/portal/user/confirm/{id}", [["origin", "q", true], ["id", "p", true], ["org_id", "q", true]]], ["userExists", "get", "/v2/portal/public/user/exists", [["email", "q", true], ["org_id", "q", true], ["origin", "q"]]], ["userExistsV3", "get", "/v3/portal/public/user/exists", [["email", "q", true], ["org_id", "q", true], ["portal_id", "q"]]], ["getRecipientsToNotifyOnAutomation", "post", "/v2/portal/recipients-to-notify", null, 1], ["configureDistribution", "get", "/v2/portal/configure-distribution", [["origin", "q", true]]], ["configureDistributionV3", "get", "/v3/portal/configure-distribution", [["portal_id", "q", true]]], ["getAllOrders", "get", "/v2/portal/order", [["from", "q"], ["size", "q"]]], ["postOrderAcceptance", "post", "/v2/portal/order/{id}/acceptance", [["id", "p", true]], 1], ["getOrder", "get", "/v2/portal/order/{id}", [["id", "p", true]]], ["updateOrder", "patch", "/v2/portal/order/{id}", [["id", "p", true]], 1], ["getAllOpportunities", "get", "/v2/portal/opportunity", [["from", "q"], ["size", "q"]]], ["getSearchableAttributesForOpportunities", "get", "/v2/portal/opportunities/searchable-attributes", [["from", "q"], ["size", "q"]]], ["getSearchResultsForOpportunities", "post", "/v2/portal/opportunities/search", [["from", "q"], ["size", "q"]], 1], ["getOpportunity", "get", "/v2/portal/opportunities/{id}", [["id", "p", true]]], ["updateOpportunity", "patch", "/v2/portal/opportunities/{id}", [["id", "p", true]], 1], ["getAllRequests", "get", "/v2/portal/request", [["from", "q"], ["size", "q"]]], ["getAllContracts", "get", "/v2/portal/contract", [["from", "q"], ["size", "q"]]], ["getContract", "get", "/v2/portal/contract/{id}", [["id", "p", true]]], ["updateContract", "patch", "/v2/portal/contract/{id}", [["id", "p", true]], 1], ["addContractByIdentifiers", "post", "/v2/portal/contract/by-identifiers", null, 1], ["getEntityIdentifiers", "get", "/v2/portal/entity/identifiers/{slug}", [["slug", "p", true]]], ["getEntityActivityFeed", "get", "/v2/portal/entity/{slug}/{id}/activity", [["slug", "p", true], ["id", "p", true], ["after", "q"], ["before", "q"], ["from", "q"], ["size", "q"], ["type", "q"], ["include_relations", "q"]]], ["validateCadenceEntityEditRules", "get", "/v2/portal/{slug}/{id}:validateRule", [["slug", "p", true], ["id", "p", true], ["attribute", "q"]]], ["searchPaymentRelationsInEntities", "get", "/v2/portal/entities-by-payment/{id}", [["id", "p", true]]], ["createCustomEntityActivity", "put", "/v2/portal/entity/activity", [["entities", "q", false, "form"]], 1], ["saveEntityFile", "post", "/v2/portal/entity/file", null, 1], ["deleteEntityFile", "delete", "/v2/portal/entity/file", null, 1], ["savePortalFiles", "post", "/v2/portal/portal/files", null, 1], ["getRegistrationIdentifiers", "get", "/v2/portal/registration/identifiers"], ["getAllFiles", "get", "/v2/portal/user/files", [["from", "q", true], ["size", "q", true], ["entity_ids", "q"], ["file_types", "q"]]], ["getFileById", "get", "/v2/portal/user/file/{id}", [["id", "p", true]]], ["trackFileDownloaded", "post", "/v2/portal/user/file/{id}/downloaded", [["id", "p", true]]], ["getFilesCountByEntity", "get", "/v2/portal/user/files/count-by-entity"], ["getBillingEvents", "get", "/v2/portal/billing/events", [["from", "q"], ["size", "q"], ["entity_id", "q"], ["event_type", "q"], ["paid", "q"], ["date_after", "q"], ["date_before", "q"], ["sort", "q"]]], ["getCustomerBalance", "get", "/v2/portal/billing/customers/balance"], ["getBillingAccount", "get", "/v2/portal/billing/accounts/{id}"], ["loginToPortalAsUser", "post", "/v2/portal/admin:login-as-user", null, 1], ["triggerEntityAccessEvent", "post", "/v2/portal/entity/{schema}/access", [["schema", "p", true], ["entity_id", "q"], ["origin", "q", true]]], ["triggerEntityAccessEventV3", "post", "/v3/portal/entity/{schema}/access", [["schema", "p", true], ["entity_id", "q"], ["portal_id", "q", true]]], ["getPortalUserEntity", "post", "/v2/portal/entity:get", null, 1], ["searchPortalUserEntities", "post", "/v2/portal/entity:search", null, 1], ["canTriggerPortalFlow", "post", "/v2/portal/can-trigger-portal-flow", [["origin", "q"], ["portal_id", "q", true]], 1], ["getAutomationContext", "get", "/v2/portal/automation-context", [["activity_id", "q", true], ["type", "q", true]]], ["updateWorkflowStepAsDone", "put", "/v2/portal/workflow/{workflow_id}/{step_id}:markDone", [["workflow_id", "p", true], ["step_id", "p", true]]], ["getEntityWorkflows", "get", "/v2/portal/entity/{slug}/{id}/workflows", [["slug", "p", true], ["id", "p", true]]], ["uploadMeterReadingPhoto", "post", "/v2/portal/metering/reading/photo", null, 1], ["createMeterReading", "post", "/v2/portal/metering/reading", [["override_plausibility", "q"]], 1], ["getAllowedMeterReadingRange", "get", "/v2/portal/metering/reading/allowed-range/{meter_id}", [["meter_id", "p", true], ["origin", "q"], ["timestamp", "q"], ["context_entities", "q"]]], ["ssoLogin", "post", "/v2/portal/public/sso/login", [["origin", "q", true], ["org_id", "q", true], ["contact_id", "q"]], 1], ["ssoLoginV3", "post", "/v3/portal/public/sso/login", [["portal_id", "q", true], ["org_id", "q", true], ["contact_id", "q"]], 1], ["ssoRedirect", "post", "/v2/portal/public/sso/redirect", [["web_uri", "q", true]], 1], ["ssoCallback", "post", "/v2/portal/public/sso/callback", [["domain", "q"]], 1], ["getPortalPage", "get", "/v2/portal/pages/{id}"], ["updatePortalPage", "put", "/v2/portal/pages/{id}", null, 1], ["deletePortalPage", "delete", "/v2/portal/pages/{id}"], ["getPortalPages", "get", "/v2/portal/pages", [["fields", "q"], ["filter", "q"], ["contract_id", "q"], ["context_entities", "q"]]], ["createPortalPage", "post", "/v2/portal/pages", null, 1], ["getPublicPages", "get", "/v2/portal/public/pages", [["domain", "q", true], ["fields", "q"], ["filter", "q"]]], ["interpolatePortalPages", "post", "/v2/portal/pages/interpolate", null, 1], ["getDefaultPages", "get", "/v2/portal/pages/default"], ["createPortalPageBlock", "post", "/v2/portal/pages/{id}/blocks", null, 1], ["getPortalPageBlocks", "get", "/v2/portal/pages/{id}/blocks"], ["getPortalPageBlock", "get", "/v2/portal/pages/{id}/blocks/{block_id}"], ["updatePortalPageBlock", "put", "/v2/portal/pages/{id}/blocks/{block_id}", null, 1], ["deletePortalPageBlock", "delete", "/v2/portal/pages/{id}/blocks/{block_id}"], ["getUserEntryPoint", "get", "/v2/portal/public/user/entry-point", [["email", "q", true], ["domain", "q", true]]], ["updateCampaignPortalBlockStatus", "put", "/v2/portal/campaign/{campaign_id}/entity:status", [["campaign_id", "p", true]], 1], ["updateNotificationsStatus", "put", "/v2/portal/notifications/entity:status", null, 1], ["deRegisterMLoginUser", "delete", "/v2/portal/public/m-login/deregister/{client_id}/{user_id}", [["client_id", "p", true], ["user_id", "p", true]]], ["notifyMLoginInterestChange", "post", "/v2/portal/public/m-login/notify-interest-change/{client_id}/{user_id}", [["client_id", "p", true], ["user_id", "p", true]], 1], ["createPortalConfig", "post", "/v3/portal/config", null, 1], ["getPortalConfigV3", "get", "/v3/portal/config/{portal_id}", [["portal_id", "p", true]]], ["putPortalConfig", "put", "/v3/portal/config/{portal_id}", [["portal_id", "p", true]], 1], ["deletePortalConfig", "delete", "/v3/portal/config/{portal_id}", [["portal_id", "p", true]]], ["listAllPortalConfigs", "get", "/v3/portal/configs"], ["swapPortalConfig", "post", "/v3/portal/config/swap", null, 1], ["invitePartner", "post", "/v3/portal/partner/invite", null, 1], ["listBusinessPartners", "get", "/v3/portal/partner/list"], ["resendPartnerInvitation", "post", "/v3/portal/partner/{partner_id}/resend-invitation", [["partner_id", "p", true]]], ["revokePartner", "delete", "/v3/portal/partner/{partner_id}/revoke", [["partner_id", "p", true]]], ["disablePartner", "post", "/v3/portal/partner/{partner_id}/disable", [["partner_id", "p", true]]], ["enablePartner", "post", "/v3/portal/partner/{partner_id}/enable", [["partner_id", "p", true]]]], v: "3.0.3", pp: { "/v2/portal/billing/accounts/{id}": [["id", "p", true]], "/v2/portal/pages/{id}": [["id", "p", true]], "/v2/portal/pages": [["domain", "q", true]], "/v2/portal/pages/{id}/blocks": [["id", "p", true]], "/v2/portal/pages/{id}/blocks/{block_id}": [["id", "p", true], ["block_id", "p", true]] } };
9
- }
10
- });
11
-
12
- export {
13
- require_customer_portal_runtime
14
- };
@@ -1,14 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
4
-
5
- // src/definitions/customer-portal-runtime.json
6
- var require_customer_portal_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
7
- "src/definitions/customer-portal-runtime.json"(exports, module) {
8
- module.exports = { s: "https://customer-portal-api.sls.epilot.io", o: [["upsertPortal", "post", "/v2/portal/portal", [["origin", "q", true], ["portal_id", "q"]], 1], ["createUser", "post", "/v2/portal/public/user", [["origin", "q", true]], 1], ["createUserV3", "post", "/v3/portal/public/user", [["portal_id", "q", true]], 1], ["validateToken", "post", "/v2/portal/token/validate"], ["revokeToken", "post", "/v2/portal/token/revoke", null, 1], ["getPortalConfigByDomain", "get", "/v2/portal/public/config", [["domain", "q", true]]], ["getPortalConfig", "get", "/v2/portal/config", [["origin", "q"]]], ["deletePortal", "delete", "/v2/portal/config", [["origin", "q", true]]], ["getPortalExtensions", "get", "/v2/portal/extensions", [["origin", "q"]]], ["getPublicPortalExtensionDetails", "get", "/v2/portal/public/extensions", [["org_id", "q", true], ["origin", "q", true]]], ["getPortalExtensionsV3", "get", "/v3/portal/extensions", [["portal_id", "q", true]]], ["getPublicPortalExtensionDetailsV3", "get", "/v3/portal/public/extensions", [["org_id", "q"], ["portal_id", "q"], ["domain", "q"]]], ["getConsumption", "get", "/v2/portal/consumption", [["app_id", "q"], ["extensionId", "q", true], ["hookId", "q", true], ["meter_id", "q"], ["from", "q", true], ["to", "q", true], ["interval", "q", true], ["context_entities", "q"]]], ["getCosts", "get", "/v2/portal/costs", [["app_id", "q"], ["extensionId", "q", true], ["hookId", "q", true], ["meter_id", "q"], ["from", "q", true], ["to", "q", true], ["interval", "q", true], ["context_entities", "q"]]], ["getPrices", "get", "/v2/portal/prices", [["app_id", "q"], ["extensionId", "q", true], ["hookId", "q", true], ["meter_id", "q"], ["from", "q", true], ["to", "q", true], ["interval", "q", true], ["context_entities", "q"]]], ["getExternalLinks", "get", "/v2/portal/external-links", [["origin", "q"], ["contactId", "q"]]], ["getResolvedExternalLink", "get", "/v2/portal/resolve:external-link/{id}", [["id", "p", true], ["origin", "q"], ["contactId", "q"]]], ["getExternalLinksV3", "get", "/v3/portal/external-links", [["portal_id", "q"], ["contactId", "q"]]], ["getResolvedExternalLinkV3", "get", "/v3/portal/resolve:external-link/{id}", [["id", "p", true], ["portal_id", "q"], ["contactId", "q"]]], ["getResolvedSeamlessLink", "get", "/v2/portal/resolve:seamless-link", [["app_id", "q"], ["extension_id", "q", true], ["link_id", "q", true], ["context_entities", "q"]]], ["getPublicPortalConfig", "get", "/v2/portal/public/portal/config", [["org_id", "q", true], ["origin", "q", true]]], ["getOrgPortalConfig", "get", "/v2/portal/org/portal/config", [["origin", "q", true]]], ["getPublicPortalConfigV3", "get", "/v3/portal/public/portal/config", [["org_id", "q", true], ["portal_id", "q", true]]], ["getOrgPortalConfigV3", "get", "/v3/portal/org/portal/config", [["portal_id", "q", true]]], ["getAllPortalConfigs", "get", "/v2/portal/configs"], ["upsertEmailTemplates", "post", "/v2/portal/email-templates", [["origin", "q", true]], 1], ["getEmailTemplates", "get", "/v2/portal/email-templates", [["origin", "q", true]]], ["upsertEmailTemplatesByPortalId", "post", "/v3/portal/email-templates/{portal_id}", [["portal_id", "p", true]], 1], ["getEmailTemplatesByPortalId", "get", "/v3/portal/email-templates/{portal_id}", [["portal_id", "p", true]]], ["getPublicPortalWidgets", "get", "/v2/portal/public-widgets", [["org_id", "q", true], ["origin", "q", true]]], ["upsertPortalWidget", "post", "/v2/portal/widgets", [["origin", "q", true]], 1], ["getPortalWidgets", "get", "/v2/portal/widgets", [["origin", "q"], ["contract_id", "q"]]], ["replaceECPTemplateVariables", "post", "/v2/portal/replace-ecp-template-variables", null, 1], ["getOrganizationSettings", "get", "/v2/portal/org/settings"], ["getSchemas", "get", "/v2/portal/schemas"], ["getSchemasByDomain", "get", "/v2/portal/public/schemas", [["domain", "q", true]]], ["getOrganizationSettingsByDomain", "get", "/v2/portal/public/org/settings", [["domain", "q", true]]], ["extraPermissionAttributes", "get", "/v2/portal/extra-permission-attributes"], ["validateCaaRecords", "post", "/v2/portal/validate/caa-records", [["origin", "q", true]]], ["validateCaaRecordsV3", "post", "/v3/portal/validate/caa-records", [["portal_id", "q", true]]], ["getContact", "get", "/v2/portal/contact"], ["updateContact", "patch", "/v2/portal/contact", null, 1], ["getECPContact", "get", "/v2/portal/ecp/contact", [["id", "q", true]]], ["checkContactExists", "post", "/v2/portal/public/contact/exists", [["origin", "q", true]], 1], ["checkContactExistsV3", "post", "/v3/portal/public/contact/exists", [["portal_id", "q", true]], 1], ["getValidSecondaryAttributes", "get", "/v2/portal/contact/valid/secondary/attributes"], ["getPortalUser", "get", "/v2/portal/user"], ["updatePortalUser", "patch", "/v2/portal/user", null, 1], ["deletePortalUser", "delete", "/v2/portal/user"], ["updatePortalUserEmail", "put", "/v2/portal/user/update/email", null, 1], ["resendConfirmationEmail", "post", "/v2/portal/user/resend/confirmation-email/{id}", [["id", "p", true]]], ["fetchPortalUsersByRelatedEntity", "get", "/v2/portal/users/by-related-entity", [["entity_id", "q", true], ["slug", "q", true]]], ["confirmUser", "get", "/v2/portal/user/confirm", [["confirmation_link_token", "q", true], ["use_redirect", "q"]]], ["confirmUserWithUserId", "get", "/v2/portal/user/confirm/{id}", [["origin", "q", true], ["id", "p", true], ["org_id", "q", true]]], ["userExists", "get", "/v2/portal/public/user/exists", [["email", "q", true], ["org_id", "q", true], ["origin", "q"]]], ["userExistsV3", "get", "/v3/portal/public/user/exists", [["email", "q", true], ["org_id", "q", true], ["portal_id", "q"]]], ["getRecipientsToNotifyOnAutomation", "post", "/v2/portal/recipients-to-notify", null, 1], ["configureDistribution", "get", "/v2/portal/configure-distribution", [["origin", "q", true]]], ["configureDistributionV3", "get", "/v3/portal/configure-distribution", [["portal_id", "q", true]]], ["getAllOrders", "get", "/v2/portal/order", [["from", "q"], ["size", "q"]]], ["postOrderAcceptance", "post", "/v2/portal/order/{id}/acceptance", [["id", "p", true]], 1], ["getOrder", "get", "/v2/portal/order/{id}", [["id", "p", true]]], ["updateOrder", "patch", "/v2/portal/order/{id}", [["id", "p", true]], 1], ["getAllOpportunities", "get", "/v2/portal/opportunity", [["from", "q"], ["size", "q"]]], ["getSearchableAttributesForOpportunities", "get", "/v2/portal/opportunities/searchable-attributes", [["from", "q"], ["size", "q"]]], ["getSearchResultsForOpportunities", "post", "/v2/portal/opportunities/search", [["from", "q"], ["size", "q"]], 1], ["getOpportunity", "get", "/v2/portal/opportunities/{id}", [["id", "p", true]]], ["updateOpportunity", "patch", "/v2/portal/opportunities/{id}", [["id", "p", true]], 1], ["getAllRequests", "get", "/v2/portal/request", [["from", "q"], ["size", "q"]]], ["getAllContracts", "get", "/v2/portal/contract", [["from", "q"], ["size", "q"]]], ["getContract", "get", "/v2/portal/contract/{id}", [["id", "p", true]]], ["updateContract", "patch", "/v2/portal/contract/{id}", [["id", "p", true]], 1], ["addContractByIdentifiers", "post", "/v2/portal/contract/by-identifiers", null, 1], ["getEntityIdentifiers", "get", "/v2/portal/entity/identifiers/{slug}", [["slug", "p", true]]], ["getEntityActivityFeed", "get", "/v2/portal/entity/{slug}/{id}/activity", [["slug", "p", true], ["id", "p", true], ["after", "q"], ["before", "q"], ["from", "q"], ["size", "q"], ["type", "q"], ["include_relations", "q"]]], ["validateCadenceEntityEditRules", "get", "/v2/portal/{slug}/{id}:validateRule", [["slug", "p", true], ["id", "p", true], ["attribute", "q"]]], ["searchPaymentRelationsInEntities", "get", "/v2/portal/entities-by-payment/{id}", [["id", "p", true]]], ["createCustomEntityActivity", "put", "/v2/portal/entity/activity", [["entities", "q", false, "form"]], 1], ["saveEntityFile", "post", "/v2/portal/entity/file", null, 1], ["deleteEntityFile", "delete", "/v2/portal/entity/file", null, 1], ["savePortalFiles", "post", "/v2/portal/portal/files", null, 1], ["getRegistrationIdentifiers", "get", "/v2/portal/registration/identifiers"], ["getAllFiles", "get", "/v2/portal/user/files", [["from", "q", true], ["size", "q", true], ["entity_ids", "q"], ["file_types", "q"]]], ["getFileById", "get", "/v2/portal/user/file/{id}", [["id", "p", true]]], ["trackFileDownloaded", "post", "/v2/portal/user/file/{id}/downloaded", [["id", "p", true]]], ["getFilesCountByEntity", "get", "/v2/portal/user/files/count-by-entity"], ["getBillingEvents", "get", "/v2/portal/billing/events", [["from", "q"], ["size", "q"], ["entity_id", "q"], ["event_type", "q"], ["paid", "q"], ["date_after", "q"], ["date_before", "q"], ["sort", "q"]]], ["getCustomerBalance", "get", "/v2/portal/billing/customers/balance"], ["getBillingAccount", "get", "/v2/portal/billing/accounts/{id}"], ["loginToPortalAsUser", "post", "/v2/portal/admin:login-as-user", null, 1], ["triggerEntityAccessEvent", "post", "/v2/portal/entity/{schema}/access", [["schema", "p", true], ["entity_id", "q"], ["origin", "q", true]]], ["triggerEntityAccessEventV3", "post", "/v3/portal/entity/{schema}/access", [["schema", "p", true], ["entity_id", "q"], ["portal_id", "q", true]]], ["getPortalUserEntity", "post", "/v2/portal/entity:get", null, 1], ["searchPortalUserEntities", "post", "/v2/portal/entity:search", null, 1], ["canTriggerPortalFlow", "post", "/v2/portal/can-trigger-portal-flow", [["origin", "q"], ["portal_id", "q", true]], 1], ["getAutomationContext", "get", "/v2/portal/automation-context", [["activity_id", "q", true], ["type", "q", true]]], ["updateWorkflowStepAsDone", "put", "/v2/portal/workflow/{workflow_id}/{step_id}:markDone", [["workflow_id", "p", true], ["step_id", "p", true]]], ["getEntityWorkflows", "get", "/v2/portal/entity/{slug}/{id}/workflows", [["slug", "p", true], ["id", "p", true]]], ["uploadMeterReadingPhoto", "post", "/v2/portal/metering/reading/photo", null, 1], ["createMeterReading", "post", "/v2/portal/metering/reading", [["override_plausibility", "q"]], 1], ["getAllowedMeterReadingRange", "get", "/v2/portal/metering/reading/allowed-range/{meter_id}", [["meter_id", "p", true], ["origin", "q"], ["timestamp", "q"], ["context_entities", "q"]]], ["ssoLogin", "post", "/v2/portal/public/sso/login", [["origin", "q", true], ["org_id", "q", true], ["contact_id", "q"]], 1], ["ssoLoginV3", "post", "/v3/portal/public/sso/login", [["portal_id", "q", true], ["org_id", "q", true], ["contact_id", "q"]], 1], ["ssoRedirect", "post", "/v2/portal/public/sso/redirect", [["web_uri", "q", true]], 1], ["ssoCallback", "post", "/v2/portal/public/sso/callback", [["domain", "q"]], 1], ["getPortalPage", "get", "/v2/portal/pages/{id}"], ["updatePortalPage", "put", "/v2/portal/pages/{id}", null, 1], ["deletePortalPage", "delete", "/v2/portal/pages/{id}"], ["getPortalPages", "get", "/v2/portal/pages", [["fields", "q"], ["filter", "q"], ["contract_id", "q"], ["context_entities", "q"]]], ["createPortalPage", "post", "/v2/portal/pages", null, 1], ["getPublicPages", "get", "/v2/portal/public/pages", [["domain", "q", true], ["fields", "q"], ["filter", "q"]]], ["interpolatePortalPages", "post", "/v2/portal/pages/interpolate", null, 1], ["getDefaultPages", "get", "/v2/portal/pages/default"], ["createPortalPageBlock", "post", "/v2/portal/pages/{id}/blocks", null, 1], ["getPortalPageBlocks", "get", "/v2/portal/pages/{id}/blocks"], ["getPortalPageBlock", "get", "/v2/portal/pages/{id}/blocks/{block_id}"], ["updatePortalPageBlock", "put", "/v2/portal/pages/{id}/blocks/{block_id}", null, 1], ["deletePortalPageBlock", "delete", "/v2/portal/pages/{id}/blocks/{block_id}"], ["getUserEntryPoint", "get", "/v2/portal/public/user/entry-point", [["email", "q", true], ["domain", "q", true]]], ["updateCampaignPortalBlockStatus", "put", "/v2/portal/campaign/{campaign_id}/entity:status", [["campaign_id", "p", true]], 1], ["updateNotificationsStatus", "put", "/v2/portal/notifications/entity:status", null, 1], ["deRegisterMLoginUser", "delete", "/v2/portal/public/m-login/deregister/{client_id}/{user_id}", [["client_id", "p", true], ["user_id", "p", true]]], ["notifyMLoginInterestChange", "post", "/v2/portal/public/m-login/notify-interest-change/{client_id}/{user_id}", [["client_id", "p", true], ["user_id", "p", true]], 1], ["createPortalConfig", "post", "/v3/portal/config", null, 1], ["getPortalConfigV3", "get", "/v3/portal/config/{portal_id}", [["portal_id", "p", true]]], ["putPortalConfig", "put", "/v3/portal/config/{portal_id}", [["portal_id", "p", true]], 1], ["deletePortalConfig", "delete", "/v3/portal/config/{portal_id}", [["portal_id", "p", true]]], ["listAllPortalConfigs", "get", "/v3/portal/configs"], ["swapPortalConfig", "post", "/v3/portal/config/swap", null, 1], ["invitePartner", "post", "/v3/portal/partner/invite", null, 1], ["listBusinessPartners", "get", "/v3/portal/partner/list"], ["resendPartnerInvitation", "post", "/v3/portal/partner/{partner_id}/resend-invitation", [["partner_id", "p", true]]], ["revokePartner", "delete", "/v3/portal/partner/{partner_id}/revoke", [["partner_id", "p", true]]], ["disablePartner", "post", "/v3/portal/partner/{partner_id}/disable", [["partner_id", "p", true]]], ["enablePartner", "post", "/v3/portal/partner/{partner_id}/enable", [["partner_id", "p", true]]]], v: "3.0.3", pp: { "/v2/portal/billing/accounts/{id}": [["id", "p", true]], "/v2/portal/pages/{id}": [["id", "p", true]], "/v2/portal/pages": [["domain", "q", true]], "/v2/portal/pages/{id}/blocks": [["id", "p", true]], "/v2/portal/pages/{id}/blocks/{block_id}": [["id", "p", true], ["block_id", "p", true]] } };
9
- }
10
- });
11
-
12
-
13
-
14
- exports.require_customer_portal_runtime = require_customer_portal_runtime;