@epilot/automation-client 2.10.1 → 2.11.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 +21 -0
- package/dist/client.d.ts +0 -0
- package/dist/client.js +0 -0
- package/dist/definition.d.ts +0 -0
- package/dist/definition.js +0 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -0
- package/dist/openapi.d.ts +95 -5
- package/dist/openapi.json +0 -0
- package/package.json +4 -5
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/client.d.ts
CHANGED
|
File without changes
|
package/dist/client.js
CHANGED
|
File without changes
|
package/dist/definition.d.ts
CHANGED
|
File without changes
|
package/dist/definition.js
CHANGED
|
File without changes
|
package/dist/index.d.ts
CHANGED
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 Schemas {
|
|
@@ -1284,9 +1285,9 @@ declare namespace Components {
|
|
|
1284
1285
|
operation?: EntityOperation[];
|
|
1285
1286
|
payload?: FilterConditionOnEvent;
|
|
1286
1287
|
diff?: OrConditionForDiff | {
|
|
1287
|
-
added?:
|
|
1288
|
-
updated?:
|
|
1289
|
-
deleted?:
|
|
1288
|
+
added?: DiffAdded;
|
|
1289
|
+
updated?: DiffUpdated;
|
|
1290
|
+
deleted?: DiffDeleted;
|
|
1290
1291
|
};
|
|
1291
1292
|
};
|
|
1292
1293
|
activity?: {
|
|
@@ -1722,7 +1723,7 @@ declare namespace Components {
|
|
|
1722
1723
|
$or?: FilterConditionOnEvent[];
|
|
1723
1724
|
}
|
|
1724
1725
|
export interface OrConditionForDiff {
|
|
1725
|
-
$or?: (
|
|
1726
|
+
$or?: (DiffAdded | DiffUpdated | DiffDeleted)[];
|
|
1726
1727
|
}
|
|
1727
1728
|
/**
|
|
1728
1729
|
* example:
|
|
@@ -2835,3 +2836,92 @@ export interface PathsDictionary {
|
|
|
2835
2836
|
}
|
|
2836
2837
|
|
|
2837
2838
|
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
2839
|
+
|
|
2840
|
+
export type ActionCondition = Components.Schemas.ActionCondition;
|
|
2841
|
+
export type ActivityId = Components.Schemas.ActivityId;
|
|
2842
|
+
export type ActivityTrigger = Components.Schemas.ActivityTrigger;
|
|
2843
|
+
export type AnyAction = Components.Schemas.AnyAction;
|
|
2844
|
+
export type AnyActionConfig = Components.Schemas.AnyActionConfig;
|
|
2845
|
+
export type AnyTrigger = Components.Schemas.AnyTrigger;
|
|
2846
|
+
export type AnythingButCondition = Components.Schemas.AnythingButCondition;
|
|
2847
|
+
export type ApiCallerContext = Components.Schemas.ApiCallerContext;
|
|
2848
|
+
export type ApiSubmissionTrigger = Components.Schemas.ApiSubmissionTrigger;
|
|
2849
|
+
export type AppendValueMapper = Components.Schemas.AppendValueMapper;
|
|
2850
|
+
export type AssignUsersToStep = Components.Schemas.AssignUsersToStep;
|
|
2851
|
+
export type AutomationAction = Components.Schemas.AutomationAction;
|
|
2852
|
+
export type AutomationActionConfig = Components.Schemas.AutomationActionConfig;
|
|
2853
|
+
export type AutomationActionExecutionState = Components.Schemas.AutomationActionExecutionState;
|
|
2854
|
+
export type AutomationActionId = Components.Schemas.AutomationActionId;
|
|
2855
|
+
export type AutomationExecution = Components.Schemas.AutomationExecution;
|
|
2856
|
+
export type AutomationExecutionId = Components.Schemas.AutomationExecutionId;
|
|
2857
|
+
export type AutomationFlow = Components.Schemas.AutomationFlow;
|
|
2858
|
+
export type AutomationFlowId = Components.Schemas.AutomationFlowId;
|
|
2859
|
+
export type AutomationTrigger = Components.Schemas.AutomationTrigger;
|
|
2860
|
+
export type CartCheckoutAction = Components.Schemas.CartCheckoutAction;
|
|
2861
|
+
export type CartCheckoutActionConfig = Components.Schemas.CartCheckoutActionConfig;
|
|
2862
|
+
export type CartCheckoutConfig = Components.Schemas.CartCheckoutConfig;
|
|
2863
|
+
export type Comparison = Components.Schemas.Comparison;
|
|
2864
|
+
export type ConditionStatement = Components.Schemas.ConditionStatement;
|
|
2865
|
+
export type CopyValueMapper = Components.Schemas.CopyValueMapper;
|
|
2866
|
+
export type CreateDocumentAction = Components.Schemas.CreateDocumentAction;
|
|
2867
|
+
export type CreateDocumentActionConfig = Components.Schemas.CreateDocumentActionConfig;
|
|
2868
|
+
export type CreateDocumentConfig = Components.Schemas.CreateDocumentConfig;
|
|
2869
|
+
export type DiffAdded = Components.Schemas.DiffAdded;
|
|
2870
|
+
export type DiffDeleted = Components.Schemas.DiffDeleted;
|
|
2871
|
+
export type DiffUpdated = Components.Schemas.DiffUpdated;
|
|
2872
|
+
export type EntityId = Components.Schemas.EntityId;
|
|
2873
|
+
export type EntityItemSnapshot = Components.Schemas.EntityItemSnapshot;
|
|
2874
|
+
export type EntityManualTrigger = Components.Schemas.EntityManualTrigger;
|
|
2875
|
+
export type EntityOperation = Components.Schemas.EntityOperation;
|
|
2876
|
+
export type EntityOperationTrigger = Components.Schemas.EntityOperationTrigger;
|
|
2877
|
+
export type EqualsIgnoreCaseCondition = Components.Schemas.EqualsIgnoreCaseCondition;
|
|
2878
|
+
export type ErrorCode = Components.Schemas.ErrorCode;
|
|
2879
|
+
export type ErrorDetail = Components.Schemas.ErrorDetail;
|
|
2880
|
+
export type ErrorOutput = Components.Schemas.ErrorOutput;
|
|
2881
|
+
export type ExecutionStatus = Components.Schemas.ExecutionStatus;
|
|
2882
|
+
export type ExistsCondition = Components.Schemas.ExistsCondition;
|
|
2883
|
+
export type FilterConditionOnEvent = Components.Schemas.FilterConditionOnEvent;
|
|
2884
|
+
export type FrontendSubmitTrigger = Components.Schemas.FrontendSubmitTrigger;
|
|
2885
|
+
export type GetExecutionsResp = Components.Schemas.GetExecutionsResp;
|
|
2886
|
+
export type JourneySubmitTrigger = Components.Schemas.JourneySubmitTrigger;
|
|
2887
|
+
export type MapEntityAction = Components.Schemas.MapEntityAction;
|
|
2888
|
+
export type MapEntityActionConfig = Components.Schemas.MapEntityActionConfig;
|
|
2889
|
+
export type MapEntityConfig = Components.Schemas.MapEntityConfig;
|
|
2890
|
+
export type MappingAttribute = Components.Schemas.MappingAttribute;
|
|
2891
|
+
export type MappingAttributeMode = Components.Schemas.MappingAttributeMode;
|
|
2892
|
+
export type MappingAttributeV2 = Components.Schemas.MappingAttributeV2;
|
|
2893
|
+
export type MappingConfigRef = Components.Schemas.MappingConfigRef;
|
|
2894
|
+
export type NumericCondition = Components.Schemas.NumericCondition;
|
|
2895
|
+
export type OperationNode = Components.Schemas.OperationNode;
|
|
2896
|
+
export type OperationObjectNode = Components.Schemas.OperationObjectNode;
|
|
2897
|
+
export type OrCondition = Components.Schemas.OrCondition;
|
|
2898
|
+
export type OrConditionForDiff = Components.Schemas.OrConditionForDiff;
|
|
2899
|
+
export type OrganizationId = Components.Schemas.OrganizationId;
|
|
2900
|
+
export type PrefixCondition = Components.Schemas.PrefixCondition;
|
|
2901
|
+
export type PrimitiveJSONValue = Components.Schemas.PrimitiveJSONValue;
|
|
2902
|
+
export type ReceivedEmailTrigger = Components.Schemas.ReceivedEmailTrigger;
|
|
2903
|
+
export type RelationAttribute = Components.Schemas.RelationAttribute;
|
|
2904
|
+
export type ResumeReq = Components.Schemas.ResumeReq;
|
|
2905
|
+
export type ResumeResp = Components.Schemas.ResumeResp;
|
|
2906
|
+
export type ResumeToken = Components.Schemas.ResumeToken;
|
|
2907
|
+
export type RetryReq = Components.Schemas.RetryReq;
|
|
2908
|
+
export type RetryStrategy = Components.Schemas.RetryStrategy;
|
|
2909
|
+
export type SearchAutomationsResp = Components.Schemas.SearchAutomationsResp;
|
|
2910
|
+
export type SendEmailAction = Components.Schemas.SendEmailAction;
|
|
2911
|
+
export type SendEmailActionConfig = Components.Schemas.SendEmailActionConfig;
|
|
2912
|
+
export type SendEmailConfig = Components.Schemas.SendEmailConfig;
|
|
2913
|
+
export type SetValueMapper = Components.Schemas.SetValueMapper;
|
|
2914
|
+
export type StartExecutionRequest = Components.Schemas.StartExecutionRequest;
|
|
2915
|
+
export type SuffixCondition = Components.Schemas.SuffixCondition;
|
|
2916
|
+
export type TriggerCondition = Components.Schemas.TriggerCondition;
|
|
2917
|
+
export type TriggerEventEntityActivity = Components.Schemas.TriggerEventEntityActivity;
|
|
2918
|
+
export type TriggerEventEntityOperation = Components.Schemas.TriggerEventEntityOperation;
|
|
2919
|
+
export type TriggerEventManual = Components.Schemas.TriggerEventManual;
|
|
2920
|
+
export type TriggerWebhookAction = Components.Schemas.TriggerWebhookAction;
|
|
2921
|
+
export type TriggerWebhookActionConfig = Components.Schemas.TriggerWebhookActionConfig;
|
|
2922
|
+
export type TriggerWebhookConfig = Components.Schemas.TriggerWebhookConfig;
|
|
2923
|
+
export type TriggerWorkflowAction = Components.Schemas.TriggerWorkflowAction;
|
|
2924
|
+
export type TriggerWorkflowActionConfig = Components.Schemas.TriggerWorkflowActionConfig;
|
|
2925
|
+
export type TriggerWorkflowCondition = Components.Schemas.TriggerWorkflowCondition;
|
|
2926
|
+
export type TriggerWorkflowConfig = Components.Schemas.TriggerWorkflowConfig;
|
|
2927
|
+
export type WildcardCondition = Components.Schemas.WildcardCondition;
|
package/dist/openapi.json
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/automation-client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"description": "Client library for epilot automation API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"typescript": "tsc",
|
|
26
26
|
"bundle-definition": "webpack",
|
|
27
27
|
"openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/automation.yaml",
|
|
28
|
-
"typegen": "
|
|
28
|
+
"typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
|
|
29
29
|
"build": "tsc && npm run bundle-definition",
|
|
30
30
|
"build:watch": "npm run build && tsc -w",
|
|
31
31
|
"prepublishOnly": "npm run typegen && npm run build",
|
|
@@ -65,8 +65,7 @@
|
|
|
65
65
|
"json-loader": "^0.5.7",
|
|
66
66
|
"node-fetch": "^3.2.10",
|
|
67
67
|
"openapi-client-axios": "^7.5.1",
|
|
68
|
-
"
|
|
69
|
-
"openapicmd": "^2.1.0",
|
|
68
|
+
"openapicmd": "^2.6.0",
|
|
70
69
|
"ts-jest": "^26.5.0",
|
|
71
70
|
"ts-loader": "^8.0.14",
|
|
72
71
|
"ts-node": "^10.9.1",
|
|
@@ -75,5 +74,5 @@
|
|
|
75
74
|
"webpack-cli": "^4.4.0",
|
|
76
75
|
"whatwg-url": "^11.0.0"
|
|
77
76
|
},
|
|
78
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "6c12dc4aaf7ddf60ad11c6f596fb478559fa3052"
|
|
79
78
|
}
|