@digipair/skill-smoobu 0.13.3 → 0.13.4
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/index.cjs.js +27463 -2
- package/index.esm.js +27443 -1
- package/libs/engine/src/index.d.ts +2 -0
- package/libs/engine/src/lib/engine.d.ts +10 -0
- package/libs/engine/src/lib/pins-settings.interface.d.ts +21 -0
- package/libs/skill-smoobu/src/lib/skill-smoobu.d.ts +1 -0
- package/package.json +1 -1
- package/schema.json +58 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PinsSettings } from './pins-settings.interface';
|
|
2
|
+
type CONFIG_KEY = 'BASE_URL' | 'LIBRARIES';
|
|
3
|
+
export declare const config: {
|
|
4
|
+
set: (key: CONFIG_KEY, value: any) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const applyTemplate: (value: any, context: any) => any;
|
|
7
|
+
export declare const executePinsList: (pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
8
|
+
export declare const generateElementFromPins: (pinsSettings: PinsSettings, parent: Element, context: any) => Promise<Element | void>;
|
|
9
|
+
export declare const preparePinsSettings: (settings: PinsSettings, context: any) => Promise<PinsSettings>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface PinsSettings {
|
|
2
|
+
element: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
library: string;
|
|
6
|
+
properties?: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
variables?: {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
};
|
|
12
|
+
conditions?: {
|
|
13
|
+
if?: boolean;
|
|
14
|
+
each?: any[];
|
|
15
|
+
};
|
|
16
|
+
pins?: PinsSettings[];
|
|
17
|
+
events?: {
|
|
18
|
+
[key: string]: PinsSettings[];
|
|
19
|
+
};
|
|
20
|
+
context?: any;
|
|
21
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { PinsSettings } from '@digipair/engine';
|
|
2
|
+
export declare const event: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
2
3
|
export declare const getReservationWithId: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
3
4
|
export declare const getAllReservations: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
package/package.json
CHANGED
package/schema.json
CHANGED
|
@@ -48,5 +48,62 @@
|
|
|
48
48
|
"components": {
|
|
49
49
|
"schemas": {}
|
|
50
50
|
},
|
|
51
|
-
"x-scene-blocks": {
|
|
51
|
+
"x-scene-blocks": {
|
|
52
|
+
"/event": {
|
|
53
|
+
"summary": "Réservation Smoobu",
|
|
54
|
+
"description": "Gestion des évènements sur les réservations",
|
|
55
|
+
"tags": ["service"],
|
|
56
|
+
"metadata": [],
|
|
57
|
+
"parameters": [
|
|
58
|
+
{
|
|
59
|
+
"name": "updateRates",
|
|
60
|
+
"summary": "Lors de la mise à jour des tarifs",
|
|
61
|
+
"required": true,
|
|
62
|
+
"description": "Commandes à exécuter lors de la mise à jour des tarifs",
|
|
63
|
+
"schema": {
|
|
64
|
+
"type": "array",
|
|
65
|
+
"items": {
|
|
66
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "newReservation",
|
|
72
|
+
"summary": "Lors d'une nouvelle réservation",
|
|
73
|
+
"required": true,
|
|
74
|
+
"description": "Commandes à exécuter lors d'une nouvelle réservation",
|
|
75
|
+
"schema": {
|
|
76
|
+
"type": "array",
|
|
77
|
+
"items": {
|
|
78
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "cancelReservation",
|
|
84
|
+
"summary": "Lors d'une annulation",
|
|
85
|
+
"required": true,
|
|
86
|
+
"description": "Commandes à exécuter lors d'une annulation",
|
|
87
|
+
"schema": {
|
|
88
|
+
"type": "array",
|
|
89
|
+
"items": {
|
|
90
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "updateReservation",
|
|
96
|
+
"summary": "Lors de la mise à jour d'une réservation",
|
|
97
|
+
"required": true,
|
|
98
|
+
"description": "Commandes à exécuter lors de la mise à jour d'une réservation",
|
|
99
|
+
"schema": {
|
|
100
|
+
"type": "array",
|
|
101
|
+
"items": {
|
|
102
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
}
|
|
52
109
|
}
|