@epilot/customer-portal-client 0.11.0 → 0.11.2-rc1

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/src/openapi.json CHANGED
@@ -779,16 +779,18 @@
779
779
  ],
780
780
  "requestBody": {
781
781
  "description": "ECPVariables payload",
782
- "required": true,
783
782
  "content": {
784
783
  "application/json": {
785
784
  "schema": {
786
785
  "type": "object",
787
- "properties": {
788
- "contactId": {
789
- "type": "string",
790
- "example": "7aa44fb8-d60e-40cc-9a3a-ba09a1ff7f51",
791
- "description": "ID of the contact"
786
+ "additionalProperties": {
787
+ "type": "object",
788
+ "properties": {
789
+ "_id": {
790
+ "type": "string",
791
+ "example": "7aa44fb8-d60e-40cc-9a3a-ba09a1ff7f51",
792
+ "description": "ID of the contact"
793
+ }
792
794
  }
793
795
  }
794
796
  }
@@ -809,6 +811,10 @@
809
811
  "invitationLink": {
810
812
  "type": "string",
811
813
  "example": "https://end-customer-portal.ecp.dev.epilot.io/register?contactId=7aa44fb8-d60e-40cc-9a3a-ba09a1ff7f51&email=john@doe.com"
814
+ },
815
+ "newDocumentLink": {
816
+ "type": "string",
817
+ "example": "https://end-customer-portal.ecp.dev.epilot.io/documents"
812
818
  }
813
819
  }
814
820
  },
@@ -818,6 +824,10 @@
818
824
  "invitationLink": {
819
825
  "type": "string",
820
826
  "example": "https://installer-portal.ecp.dev.epilot.io/register?contactId=7aa44fb8-d60e-40cc-9a3a-ba09a1ff7f51&email=john@doe.com"
827
+ },
828
+ "newDocumentLink": {
829
+ "type": "string",
830
+ "example": "https://installer-portal.ecp.dev.epilot.io/documents"
821
831
  }
822
832
  }
823
833
  }
@@ -3047,6 +3057,69 @@
3047
3057
  }
3048
3058
  }
3049
3059
  },
3060
+ "/v2/portal/registration/identifiers": {
3061
+ "get": {
3062
+ "operationId": "getRegistrationIdentifiers",
3063
+ "summary": "getRegistrationIdentifiers",
3064
+ "description": "Get valid attributes from entities that can be used as identifier to map contact to user on registration",
3065
+ "tags": [
3066
+ "ECP Admin"
3067
+ ],
3068
+ "security": [
3069
+ {
3070
+ "EpilotAuth": []
3071
+ }
3072
+ ],
3073
+ "responses": {
3074
+ "200": {
3075
+ "description": "A dictionary of identifier attributes per entity schema are returned successfully.",
3076
+ "content": {
3077
+ "application/json": {
3078
+ "schema": {
3079
+ "type": "object",
3080
+ "properties": {
3081
+ "data": {
3082
+ "type": "object",
3083
+ "additionalProperties": {
3084
+ "type": "array",
3085
+ "items": {
3086
+ "$ref": "#/components/schemas/IdentifierAttribute"
3087
+ }
3088
+ },
3089
+ "example": {
3090
+ "contact": [
3091
+ {
3092
+ "label": "First name",
3093
+ "name": "first_name",
3094
+ "type": "string"
3095
+ }
3096
+ ],
3097
+ "contract": [
3098
+ {
3099
+ "label": "Contract number",
3100
+ "name": "contract_number",
3101
+ "type": "string"
3102
+ }
3103
+ ]
3104
+ }
3105
+ }
3106
+ }
3107
+ }
3108
+ }
3109
+ }
3110
+ },
3111
+ "401": {
3112
+ "$ref": "#/components/responses/Unauthorized"
3113
+ },
3114
+ "403": {
3115
+ "$ref": "#/components/responses/Forbidden"
3116
+ },
3117
+ "500": {
3118
+ "$ref": "#/components/responses/InternalServerError"
3119
+ }
3120
+ }
3121
+ }
3122
+ },
3050
3123
  "/v2/portal/user/files": {
3051
3124
  "get": {
3052
3125
  "operationId": "getAllFiles",
@@ -3339,14 +3412,6 @@
3339
3412
  "format": "date-time",
3340
3413
  "description": "List billing events before this date"
3341
3414
  }
3342
- },
3343
- {
3344
- "name": "customer_id",
3345
- "in": "query",
3346
- "schema": {
3347
- "type": "string",
3348
- "description": "List billing events for all contracts/orders of specific customer"
3349
- }
3350
3415
  }
3351
3416
  ],
3352
3417
  "responses": {
@@ -3376,31 +3441,19 @@
3376
3441
  }
3377
3442
  }
3378
3443
  },
3379
- "/v2/portal/billing/customers/{customer_id}/balance": {
3444
+ "/v2/portal/billing/customers/balance": {
3380
3445
  "get": {
3381
3446
  "operationId": "getCustomerBalance",
3382
3447
  "summary": "getCustomerBalance",
3383
3448
  "description": "Get total balance across all contracts and orders of a customer entity.",
3384
3449
  "security": [
3385
3450
  {
3386
- "EpilotAuth": []
3451
+ "PortalAuth": []
3387
3452
  }
3388
3453
  ],
3389
3454
  "tags": [
3390
3455
  "Balance"
3391
3456
  ],
3392
- "parameters": [
3393
- {
3394
- "name": "customer_id",
3395
- "in": "path",
3396
- "description": "Customer entity ID (contact or account)",
3397
- "required": true,
3398
- "schema": {
3399
- "type": "string",
3400
- "example": "1e3f0d58-69d2-4dbb-9a43-3ee63d862e8e"
3401
- }
3402
- }
3403
- ],
3404
3457
  "responses": {
3405
3458
  "200": {
3406
3459
  "description": "OK",
@@ -3673,24 +3726,6 @@
3673
3726
  "type": "http",
3674
3727
  "scheme": "bearer",
3675
3728
  "description": "Epilot Bearer Token"
3676
- },
3677
- "AsOrganization": {
3678
- "type": "apiKey",
3679
- "in": "header",
3680
- "name": "x-ivy-org-id",
3681
- "description": "Set organization id as internal user"
3682
- },
3683
- "AsContact": {
3684
- "type": "apiKey",
3685
- "in": "header",
3686
- "name": "x-contact-id",
3687
- "description": "Set contact id as internal user"
3688
- },
3689
- "AsCustomer": {
3690
- "type": "apiKey",
3691
- "in": "header",
3692
- "name": "x-portal-user-id",
3693
- "description": "Set portal id as customer"
3694
3729
  }
3695
3730
  },
3696
3731
  "schemas": {
@@ -4219,6 +4254,12 @@
4219
4254
  {
4220
4255
  "properties": {
4221
4256
  "id": {
4257
+ "type": "string",
4258
+ "example": 12345,
4259
+ "description": "ID of the organization",
4260
+ "deprecated": true
4261
+ },
4262
+ "organization_id": {
4222
4263
  "type": "string",
4223
4264
  "example": 12345,
4224
4265
  "description": "ID of the organization"
@@ -4293,7 +4334,8 @@
4293
4334
  "CONTENT_WIDGET",
4294
4335
  "ENTITY_WIDGET",
4295
4336
  "TEASER_WIDGET",
4296
- "DOCUMENT_WIDGET"
4337
+ "DOCUMENT_WIDGET",
4338
+ "PAYMENT_WIDGET"
4297
4339
  ]
4298
4340
  },
4299
4341
  "listIndex": {
@@ -4493,6 +4535,9 @@
4493
4535
  },
4494
4536
  {
4495
4537
  "$ref": "#/components/schemas/DocumentWidget"
4538
+ },
4539
+ {
4540
+ "$ref": "#/components/schemas/PaymentWidget"
4496
4541
  }
4497
4542
  ]
4498
4543
  },
@@ -4766,56 +4811,6 @@
4766
4811
  }
4767
4812
  }
4768
4813
  },
4769
- "AuthConfig": {
4770
- "type": "object",
4771
- "properties": {
4772
- "user_pool_id": {
4773
- "type": "string",
4774
- "example": "eu-central-1_CUEQRNbUb",
4775
- "description": "AWS Cognito User Pool ID"
4776
- },
4777
- "user_pool_client_id": {
4778
- "type": "string",
4779
- "example": "6bsd0jkgoie74k2i8mrhc1vest",
4780
- "description": "AWS Cognito User Pool Client ID"
4781
- },
4782
- "user_pool_identity_pool_id": {
4783
- "type": "string",
4784
- "example": "eu-central-1:a63af1f7-ab86-4ab5-a0eb-f461cb37c2b1",
4785
- "description": "AWS Cognito User Pool Identity Pool ID"
4786
- },
4787
- "portal_id": {
4788
- "type": "string",
4789
- "example": "7h2hwdj7hhjsdcjkq03eidna3ep",
4790
- "description": "Portal ID"
4791
- }
4792
- },
4793
- "required": [
4794
- "user_pool_id",
4795
- "user_pool_client_id",
4796
- "portal_id"
4797
- ]
4798
- },
4799
- "Exists": {
4800
- "type": "object",
4801
- "required": [
4802
- "exists"
4803
- ],
4804
- "properties": {
4805
- "exists": {
4806
- "type": "boolean",
4807
- "description": "Indicate whether the item exists"
4808
- },
4809
- "active": {
4810
- "type": "boolean",
4811
- "description": "Indicate whether the item is active"
4812
- }
4813
- },
4814
- "example": {
4815
- "exists": true,
4816
- "active": false
4817
- }
4818
- },
4819
4814
  "EntitySlug": {
4820
4815
  "description": "URL-friendly identifier for the entity schema",
4821
4816
  "type": "string",
@@ -5168,45 +5163,23 @@
5168
5163
  "description": "The start date of the contract.",
5169
5164
  "example": "2021-01-01"
5170
5165
  },
5171
- "billing_schedule_by_month_day": {
5166
+ "billing_due_day": {
5172
5167
  "type": "integer",
5173
5168
  "description": "Defines the day of the month in which the installments are due.",
5174
5169
  "minimum": 1,
5175
5170
  "maximum": 31,
5176
5171
  "example": 2
5177
5172
  },
5178
- "billing_schedule_start_date": {
5179
- "type": "string",
5180
- "format": "date",
5181
- "description": "Defines the start date for the billing schedule",
5182
- "example": "2020-01-01T00:00:00.000Z"
5183
- },
5184
- "billing_schedule_end_date": {
5185
- "type": "string",
5186
- "format": "date",
5187
- "description": "Defines the end date for the billing schedule",
5188
- "example": "2020-01-01T00:00:00.000Z"
5189
- },
5190
5173
  "installment_amount": {
5191
5174
  "type": "integer",
5192
5175
  "description": "Set amount for installments in cents. (precision 2)",
5193
5176
  "example": 10050
5194
5177
  },
5195
- "installment_amount_decimal": {
5196
- "type": "string",
5197
- "description": "Set amount for installments in decimal string representation.",
5198
- "example": "100.50"
5199
- },
5200
5178
  "balance": {
5201
5179
  "type": "integer",
5202
5180
  "description": "Current balance of the contract in cents. (precision 2)",
5203
5181
  "example": 8990
5204
5182
  },
5205
- "balance_amount_decimal": {
5206
- "type": "string",
5207
- "description": "Current balance of the contract in decimal string representation.",
5208
- "example": "89.90"
5209
- },
5210
5183
  "balance_currency": {
5211
5184
  "$ref": "#/components/schemas/Currency"
5212
5185
  }
@@ -5884,6 +5857,23 @@
5884
5857
  "required": [
5885
5858
  "slug"
5886
5859
  ]
5860
+ },
5861
+ "IdentifierAttribute": {
5862
+ "type": "object",
5863
+ "properties": {
5864
+ "label": {
5865
+ "type": "string",
5866
+ "description": "Label attribute"
5867
+ },
5868
+ "name": {
5869
+ "type": "string",
5870
+ "description": "Name of the attribute"
5871
+ },
5872
+ "type": {
5873
+ "type": "string",
5874
+ "description": "Type of the secondary attribute"
5875
+ }
5876
+ }
5887
5877
  }
5888
5878
  }
5889
5879
  },