@epilot/customer-portal-client 0.16.10 → 0.17.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 epilot GmbH
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from './client';
2
- export type { Client, Components, Paths, PathsDictionary, OperationMethods } from './openapi';
2
+ export * from './openapi';
3
3
  export type { OpenAPIClient, OpenAPIClientAxios, Document } from 'openapi-client-axios';
package/dist/index.js CHANGED
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./client"), exports);
18
+ __exportStar(require("./openapi"), exports);
18
19
  //# sourceMappingURL=index.js.map
package/dist/openapi.d.ts CHANGED
@@ -1,11 +1,12 @@
1
1
  /* eslint-disable */
2
+
2
3
  import type {
3
4
  OpenAPIClient,
4
5
  Parameters,
5
6
  UnknownParamsObject,
6
7
  OperationResponse,
7
8
  AxiosRequestConfig,
8
- } from 'openapi-client-axios';
9
+ } from 'openapi-client-axios';
9
10
 
10
11
  declare namespace Components {
11
12
  namespace Responses {
@@ -5593,7 +5594,7 @@ export interface OperationMethods {
5593
5594
  * Confirm a portal user
5594
5595
  */
5595
5596
  'confirmUserWithUserId'(
5596
- parameters?: Parameters<Paths.ConfirmUserWithUserId.PathParameters & Paths.ConfirmUserWithUserId.QueryParameters> | null,
5597
+ parameters?: Parameters<Paths.ConfirmUserWithUserId.QueryParameters & Paths.ConfirmUserWithUserId.PathParameters> | null,
5597
5598
  data?: any,
5598
5599
  config?: AxiosRequestConfig
5599
5600
  ): OperationResponse<any>
@@ -5784,7 +5785,7 @@ export interface OperationMethods {
5784
5785
  *
5785
5786
  */
5786
5787
  'getEntityActivityFeed'(
5787
- parameters?: Parameters<Paths.GetEntityActivityFeed.PathParameters & Paths.GetEntityActivityFeed.QueryParameters> | null,
5788
+ parameters?: Parameters<Paths.GetEntityActivityFeed.QueryParameters & Paths.GetEntityActivityFeed.PathParameters> | null,
5788
5789
  data?: any,
5789
5790
  config?: AxiosRequestConfig
5790
5791
  ): OperationResponse<Paths.GetEntityActivityFeed.Responses.$200>
@@ -5795,7 +5796,7 @@ export interface OperationMethods {
5795
5796
  *
5796
5797
  */
5797
5798
  'validateCadenceEntityEditRules'(
5798
- parameters?: Parameters<Paths.ValidateCadenceEntityEditRules.PathParameters & Paths.ValidateCadenceEntityEditRules.QueryParameters> | null,
5799
+ parameters?: Parameters<Paths.ValidateCadenceEntityEditRules.QueryParameters & Paths.ValidateCadenceEntityEditRules.PathParameters> | null,
5799
5800
  data?: any,
5800
5801
  config?: AxiosRequestConfig
5801
5802
  ): OperationResponse<Paths.ValidateCadenceEntityEditRules.Responses.$200>
@@ -5939,7 +5940,7 @@ export interface OperationMethods {
5939
5940
  * Trigger entity access event for a portal user
5940
5941
  */
5941
5942
  'triggerEntityAccessEvent'(
5942
- parameters?: Parameters<Paths.TriggerEntityAccessEvent.PathParameters & Paths.TriggerEntityAccessEvent.QueryParameters> | null,
5943
+ parameters?: Parameters<Paths.TriggerEntityAccessEvent.QueryParameters & Paths.TriggerEntityAccessEvent.PathParameters> | null,
5943
5944
  data?: any,
5944
5945
  config?: AxiosRequestConfig
5945
5946
  ): OperationResponse<Paths.TriggerEntityAccessEvent.Responses.$200>
@@ -6367,7 +6368,7 @@ export interface PathsDictionary {
6367
6368
  * Confirm a portal user
6368
6369
  */
6369
6370
  'get'(
6370
- parameters?: Parameters<Paths.ConfirmUserWithUserId.PathParameters & Paths.ConfirmUserWithUserId.QueryParameters> | null,
6371
+ parameters?: Parameters<Paths.ConfirmUserWithUserId.QueryParameters & Paths.ConfirmUserWithUserId.PathParameters> | null,
6371
6372
  data?: any,
6372
6373
  config?: AxiosRequestConfig
6373
6374
  ): OperationResponse<any>
@@ -6590,7 +6591,7 @@ export interface PathsDictionary {
6590
6591
  *
6591
6592
  */
6592
6593
  'get'(
6593
- parameters?: Parameters<Paths.GetEntityActivityFeed.PathParameters & Paths.GetEntityActivityFeed.QueryParameters> | null,
6594
+ parameters?: Parameters<Paths.GetEntityActivityFeed.QueryParameters & Paths.GetEntityActivityFeed.PathParameters> | null,
6594
6595
  data?: any,
6595
6596
  config?: AxiosRequestConfig
6596
6597
  ): OperationResponse<Paths.GetEntityActivityFeed.Responses.$200>
@@ -6603,7 +6604,7 @@ export interface PathsDictionary {
6603
6604
  *
6604
6605
  */
6605
6606
  'get'(
6606
- parameters?: Parameters<Paths.ValidateCadenceEntityEditRules.PathParameters & Paths.ValidateCadenceEntityEditRules.QueryParameters> | null,
6607
+ parameters?: Parameters<Paths.ValidateCadenceEntityEditRules.QueryParameters & Paths.ValidateCadenceEntityEditRules.PathParameters> | null,
6607
6608
  data?: any,
6608
6609
  config?: AxiosRequestConfig
6609
6610
  ): OperationResponse<Paths.ValidateCadenceEntityEditRules.Responses.$200>
@@ -6773,7 +6774,7 @@ export interface PathsDictionary {
6773
6774
  * Trigger entity access event for a portal user
6774
6775
  */
6775
6776
  'post'(
6776
- parameters?: Parameters<Paths.TriggerEntityAccessEvent.PathParameters & Paths.TriggerEntityAccessEvent.QueryParameters> | null,
6777
+ parameters?: Parameters<Paths.TriggerEntityAccessEvent.QueryParameters & Paths.TriggerEntityAccessEvent.PathParameters> | null,
6777
6778
  data?: any,
6778
6779
  config?: AxiosRequestConfig
6779
6780
  ): OperationResponse<Paths.TriggerEntityAccessEvent.Responses.$200>
@@ -6817,3 +6818,72 @@ export interface PathsDictionary {
6817
6818
  }
6818
6819
 
6819
6820
  export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
6821
+
6822
+ export type AcceptanceDecision = Components.Schemas.AcceptanceDecision;
6823
+ export type ActionLabel = Components.Schemas.ActionLabel;
6824
+ export type ActionWidget = Components.Schemas.ActionWidget;
6825
+ export type Activity = Components.Schemas.Activity;
6826
+ export type ActivityCallerContext = Components.Schemas.ActivityCallerContext;
6827
+ export type ActivityId = Components.Schemas.ActivityId;
6828
+ export type ActivityItem = Components.Schemas.ActivityItem;
6829
+ export type AdminUser = Components.Schemas.AdminUser;
6830
+ export type AllowedFileExtensions = Components.Schemas.AllowedFileExtensions;
6831
+ export type Balance = Components.Schemas.Balance;
6832
+ export type BaseBillingEvent = Components.Schemas.BaseBillingEvent;
6833
+ export type BaseEntity = Components.Schemas.BaseEntity;
6834
+ export type BillingEvent = Components.Schemas.BillingEvent;
6835
+ export type CommonConfigAttributes = Components.Schemas.CommonConfigAttributes;
6836
+ export type Contact = Components.Schemas.Contact;
6837
+ export type ContactExistsRequest = Components.Schemas.ContactExistsRequest;
6838
+ export type ContentWidget = Components.Schemas.ContentWidget;
6839
+ export type Contract = Components.Schemas.Contract;
6840
+ export type ContractIdentifier = Components.Schemas.ContractIdentifier;
6841
+ export type CreateSSOUserRequest = Components.Schemas.CreateSSOUserRequest;
6842
+ export type CreateUserRequest = Components.Schemas.CreateUserRequest;
6843
+ export type Currency = Components.Schemas.Currency;
6844
+ export type DeleteEntityFile = Components.Schemas.DeleteEntityFile;
6845
+ export type DocumentWidget = Components.Schemas.DocumentWidget;
6846
+ export type EmailTemplates = Components.Schemas.EmailTemplates;
6847
+ export type Entity = Components.Schemas.Entity;
6848
+ export type EntityEditRule = Components.Schemas.EntityEditRule;
6849
+ export type EntityFileCount = Components.Schemas.EntityFileCount;
6850
+ export type EntityId = Components.Schemas.EntityId;
6851
+ export type EntityItem = Components.Schemas.EntityItem;
6852
+ export type EntitySearchParams = Components.Schemas.EntitySearchParams;
6853
+ export type EntitySlug = Components.Schemas.EntitySlug;
6854
+ export type EntityWidget = Components.Schemas.EntityWidget;
6855
+ export type ErrorResp = Components.Schemas.ErrorResp;
6856
+ export type ExtraSchemaAttributes = Components.Schemas.ExtraSchemaAttributes;
6857
+ export type FailedRuleErrorResp = Components.Schemas.FailedRuleErrorResp;
6858
+ export type File = Components.Schemas.File;
6859
+ export type FileItem = Components.Schemas.FileItem;
6860
+ export type Grant = Components.Schemas.Grant;
6861
+ export type IdentifierAttribute = Components.Schemas.IdentifierAttribute;
6862
+ export type InstallmentEvent = Components.Schemas.InstallmentEvent;
6863
+ export type JourneyActions = Components.Schemas.JourneyActions;
6864
+ export type Meter = Components.Schemas.Meter;
6865
+ export type Opportunity = Components.Schemas.Opportunity;
6866
+ export type Order = Components.Schemas.Order;
6867
+ export type OrganizationSettings = Components.Schemas.OrganizationSettings;
6868
+ export type Origin = Components.Schemas.Origin;
6869
+ export type PaymentWidget = Components.Schemas.PaymentWidget;
6870
+ export type PortalConfig = Components.Schemas.PortalConfig;
6871
+ export type PortalUser = Components.Schemas.PortalUser;
6872
+ export type PortalWidget = Components.Schemas.PortalWidget;
6873
+ export type Product = Components.Schemas.Product;
6874
+ export type ReimbursementEvent = Components.Schemas.ReimbursementEvent;
6875
+ export type Rule = Components.Schemas.Rule;
6876
+ export type SaveEntityFile = Components.Schemas.SaveEntityFile;
6877
+ export type SavePortalFile = Components.Schemas.SavePortalFile;
6878
+ export type Schema = Components.Schemas.Schema;
6879
+ export type TeaserWidget = Components.Schemas.TeaserWidget;
6880
+ export type TriggerPortalFlow = Components.Schemas.TriggerPortalFlow;
6881
+ export type UpdateOnlyPortalConfigAttributes = Components.Schemas.UpdateOnlyPortalConfigAttributes;
6882
+ export type UpsertPortalConfig = Components.Schemas.UpsertPortalConfig;
6883
+ export type UpsertPortalWidget = Components.Schemas.UpsertPortalWidget;
6884
+ export type UserRequest = Components.Schemas.UserRequest;
6885
+ export type WidgetAction = Components.Schemas.WidgetAction;
6886
+ export type WidgetBase = Components.Schemas.WidgetBase;
6887
+ export type WorfklowIdentifier = Components.Schemas.WorfklowIdentifier;
6888
+ export type WorkflowExecution = Components.Schemas.WorkflowExecution;
6889
+ export type WorkflowStep = Components.Schemas.WorkflowStep;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/customer-portal-client",
3
- "version": "0.16.10",
3
+ "version": "0.17.0",
4
4
  "description": "API Client for epilot portal API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  "typescript": "tsc",
24
24
  "bundle-definition": "webpack",
25
25
  "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/customer-portal.yaml",
26
- "typegen": "echo '/* eslint-disable */' > src/openapi.d.ts && typegen ./src/openapi.json >> src/openapi.d.ts",
26
+ "typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
27
27
  "build": "tsc && npm run bundle-definition",
28
28
  "build:watch": "npm run build && tsc -w",
29
29
  "prepublishOnly": "npm run typegen && npm run build",
@@ -61,13 +61,13 @@
61
61
  "copy-webpack-plugin": "^7.0.0",
62
62
  "jest": "^26.6.3",
63
63
  "json-loader": "^0.5.7",
64
- "openapi-client-axios-typegen": "^7.4.1",
65
- "openapicmd": "^2.1.0",
64
+ "openapicmd": "^2.6.0",
66
65
  "ts-jest": "^26.5.0",
67
66
  "ts-loader": "^8.0.14",
68
67
  "ts-node": "^10.9.1",
69
68
  "typescript": "^4.1.3",
70
69
  "webpack": "^5.18.0",
71
70
  "webpack-cli": "^4.4.0"
72
- }
71
+ },
72
+ "gitHead": "6c12dc4aaf7ddf60ad11c6f596fb478559fa3052"
73
73
  }