@placeshakr/config 10.20.2-alpha.0 → 10.20.2-alpha.5
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/dist/config.cjs.development.js +14 -4
- package/dist/config.cjs.development.js.map +1 -1
- package/dist/config.cjs.production.min.js +1 -1
- package/dist/config.cjs.production.min.js.map +1 -1
- package/dist/config.esm.js +12 -3
- package/dist/config.esm.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/whatsapp/index.d.ts +4 -0
- package/dist/whatsapp/index.d.ts.map +1 -0
- package/dist/whatsapp/requests.d.ts +82 -0
- package/dist/whatsapp/requests.d.ts.map +1 -0
- package/dist/whatsapp/responses.d.ts +170 -0
- package/dist/whatsapp/responses.d.ts.map +1 -0
- package/package.json +2 -2
- package/src/index.ts +7 -1
- package/src/types.ts +1 -0
- package/src/whatsapp/index.ts +4 -0
- package/src/whatsapp/requests.ts +113 -0
- package/src/whatsapp/responses.ts +197 -0
package/dist/config.esm.js
CHANGED
|
@@ -11,7 +11,7 @@ var ROLE$1;
|
|
|
11
11
|
/**
|
|
12
12
|
* security context
|
|
13
13
|
*/
|
|
14
|
-
var index$
|
|
14
|
+
var index$2 = (function (env) {
|
|
15
15
|
var orderedAccess = [ROLE$1.CLIENT, ROLE$1.PRO, ROLE$1.AGENT, ROLE$1.ADMIN, ROLE$1.SUPERADMIN];
|
|
16
16
|
var hasRole = function hasRole(claims) {
|
|
17
17
|
return !claims || !claims[env.security.claims.role] ? false : true;
|
|
@@ -1214,7 +1214,7 @@ var production = {
|
|
|
1214
1214
|
*
|
|
1215
1215
|
* @param envName
|
|
1216
1216
|
*/
|
|
1217
|
-
var index = (function (envName) {
|
|
1217
|
+
var index$1 = (function (envName) {
|
|
1218
1218
|
if (envName === 'production') return createProducts(production);
|
|
1219
1219
|
return createProducts(testing);
|
|
1220
1220
|
});
|
|
@@ -1911,5 +1911,14 @@ var createEvent = function createEvent(type, data, meta) {
|
|
|
1911
1911
|
};
|
|
1912
1912
|
};
|
|
1913
1913
|
|
|
1914
|
-
|
|
1914
|
+
var requests = {
|
|
1915
|
+
__proto__: null
|
|
1916
|
+
};
|
|
1917
|
+
|
|
1918
|
+
var index = {
|
|
1919
|
+
__proto__: null,
|
|
1920
|
+
Requests: requests
|
|
1921
|
+
};
|
|
1922
|
+
|
|
1923
|
+
export { Environments, ROLE$1 as ROLE, index as WhatsApp, acls, types as articho, createEvent, flatten, getEnv, index$1 as getPlatformConfiguration, helpers, getPath as path, reversePathName, index$2 as security, uid };
|
|
1915
1924
|
//# sourceMappingURL=config.esm.js.map
|