jourycms-sdk 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (235) hide show
  1. package/dist/base.app-container.d.ts +7 -0
  2. package/dist/base.app-container.d.ts.map +1 -0
  3. package/dist/base.app-container.js +10 -0
  4. package/dist/base.client.d.ts +10 -0
  5. package/dist/base.client.d.ts.map +1 -0
  6. package/dist/base.client.js +16 -0
  7. package/dist/base.service-container.d.ts +8 -0
  8. package/dist/base.service-container.d.ts.map +1 -0
  9. package/dist/base.service-container.js +12 -0
  10. package/dist/containers/auth/clients/api-keys.client.d.ts +13 -0
  11. package/dist/containers/auth/clients/api-keys.client.d.ts.map +1 -0
  12. package/dist/containers/auth/clients/api-keys.client.js +48 -0
  13. package/dist/containers/auth/clients/auth.client.d.ts +12 -0
  14. package/dist/containers/auth/clients/auth.client.d.ts.map +1 -0
  15. package/dist/containers/auth/clients/auth.client.js +39 -0
  16. package/dist/containers/auth/clients/permission-groups.client.d.ts +12 -0
  17. package/dist/containers/auth/clients/permission-groups.client.d.ts.map +1 -0
  18. package/dist/containers/auth/clients/permission-groups.client.js +42 -0
  19. package/dist/containers/auth/clients/permissions.client.d.ts +13 -0
  20. package/dist/containers/auth/clients/permissions.client.d.ts.map +1 -0
  21. package/dist/containers/auth/clients/permissions.client.js +48 -0
  22. package/dist/containers/auth/clients/roles.client.d.ts +17 -0
  23. package/dist/containers/auth/clients/roles.client.d.ts.map +1 -0
  24. package/dist/containers/auth/clients/roles.client.js +72 -0
  25. package/dist/containers/auth/clients/users.client.d.ts +26 -0
  26. package/dist/containers/auth/clients/users.client.d.ts.map +1 -0
  27. package/dist/containers/auth/clients/users.client.js +128 -0
  28. package/dist/containers/auth/service-container.d.ts +23 -0
  29. package/dist/containers/auth/service-container.d.ts.map +1 -0
  30. package/dist/containers/auth/service-container.js +48 -0
  31. package/dist/containers/content/clients/article-types.client.d.ts +15 -0
  32. package/dist/containers/content/clients/article-types.client.d.ts.map +1 -0
  33. package/dist/containers/content/clients/article-types.client.js +60 -0
  34. package/dist/containers/content/clients/articles.client.d.ts +15 -0
  35. package/dist/containers/content/clients/articles.client.d.ts.map +1 -0
  36. package/dist/containers/content/clients/articles.client.js +60 -0
  37. package/dist/containers/content/clients/comments.client.d.ts +15 -0
  38. package/dist/containers/content/clients/comments.client.d.ts.map +1 -0
  39. package/dist/containers/content/clients/comments.client.js +60 -0
  40. package/dist/containers/content/clients/reviews.client.d.ts +15 -0
  41. package/dist/containers/content/clients/reviews.client.d.ts.map +1 -0
  42. package/dist/containers/content/clients/reviews.client.js +60 -0
  43. package/dist/containers/content/clients/taxonomies.client.d.ts +15 -0
  44. package/dist/containers/content/clients/taxonomies.client.d.ts.map +1 -0
  45. package/dist/containers/content/clients/taxonomies.client.js +60 -0
  46. package/dist/containers/content/clients/terms.client.d.ts +15 -0
  47. package/dist/containers/content/clients/terms.client.d.ts.map +1 -0
  48. package/dist/containers/content/clients/terms.client.js +60 -0
  49. package/dist/containers/content/clients/translation.items.client.d.ts +16 -0
  50. package/dist/containers/content/clients/translation.items.client.d.ts.map +1 -0
  51. package/dist/containers/content/clients/translation.items.client.js +66 -0
  52. package/dist/containers/content/clients/translation.namespaces.client.d.ts +16 -0
  53. package/dist/containers/content/clients/translation.namespaces.client.d.ts.map +1 -0
  54. package/dist/containers/content/clients/translation.namespaces.client.js +66 -0
  55. package/dist/containers/content/clients/translation.projects.client.d.ts +16 -0
  56. package/dist/containers/content/clients/translation.projects.client.d.ts.map +1 -0
  57. package/dist/containers/content/clients/translation.projects.client.js +66 -0
  58. package/dist/containers/content/service-container.d.ts +29 -0
  59. package/dist/containers/content/service-container.d.ts.map +1 -0
  60. package/dist/containers/content/service-container.js +66 -0
  61. package/dist/containers/storage/clients/files.client.d.ts +13 -0
  62. package/dist/containers/storage/clients/files.client.d.ts.map +1 -0
  63. package/dist/containers/storage/clients/files.client.js +48 -0
  64. package/dist/containers/storage/clients/uploader.client.d.ts +6 -0
  65. package/dist/containers/storage/clients/uploader.client.d.ts.map +1 -0
  66. package/dist/containers/storage/clients/uploader.client.js +12 -0
  67. package/dist/containers/storage/clients/utils.client.d.ts +15 -0
  68. package/dist/containers/storage/clients/utils.client.d.ts.map +1 -0
  69. package/dist/containers/storage/clients/utils.client.js +45 -0
  70. package/dist/containers/storage/service-container.d.ts +31 -0
  71. package/dist/containers/storage/service-container.d.ts.map +1 -0
  72. package/dist/containers/storage/service-container.js +63 -0
  73. package/dist/containers/system/clients/apps.client.d.ts +16 -0
  74. package/dist/containers/system/clients/apps.client.d.ts.map +1 -0
  75. package/dist/containers/system/clients/apps.client.js +66 -0
  76. package/dist/containers/system/service-container.d.ts +13 -0
  77. package/dist/containers/system/service-container.d.ts.map +1 -0
  78. package/dist/containers/system/service-container.js +18 -0
  79. package/dist/exceptions/api-response.exception.d.ts +15 -0
  80. package/dist/exceptions/api-response.exception.d.ts.map +1 -0
  81. package/dist/exceptions/api-response.exception.js +26 -0
  82. package/dist/http-client.d.ts +20 -0
  83. package/dist/http-client.d.ts.map +1 -0
  84. package/dist/http-client.js +187 -0
  85. package/dist/index.d.ts +37 -0
  86. package/dist/index.d.ts.map +1 -0
  87. package/dist/index.js +237 -0
  88. package/dist/init-sdk.d.ts +21 -0
  89. package/dist/init-sdk.d.ts.map +1 -0
  90. package/dist/init-sdk.js +17 -0
  91. package/dist/sdk.test.d.ts +1 -0
  92. package/dist/sdk.test.d.ts.map +1 -0
  93. package/dist/sdk.test.js +1 -0
  94. package/dist/utils/helpers.d.ts +5 -0
  95. package/dist/utils/helpers.d.ts.map +1 -0
  96. package/dist/utils/helpers.js +13 -0
  97. package/dist/utils/logger.d.ts +133 -0
  98. package/dist/utils/logger.d.ts.map +1 -0
  99. package/dist/utils/logger.js +176 -0
  100. package/package.json +49 -0
  101. package/typings/index.d.ts +1 -0
  102. package/typings/v1/cache-manager/class.d.ts +0 -0
  103. package/typings/v1/cache-manager/entity.d.ts +83 -0
  104. package/typings/v1/cache-manager/index.d.ts +5 -0
  105. package/typings/v1/cache-manager/store.d.ts +35 -0
  106. package/typings/v1/events/index.d.ts +3 -0
  107. package/typings/v1/events/payloads.d.ts +339 -0
  108. package/typings/v1/index.d.ts +8 -0
  109. package/typings/v1/lib/execution-scenario/index.d.ts +27 -0
  110. package/typings/v1/lib/index.d.ts +4 -0
  111. package/typings/v1/lib/logger/index.d.ts +3 -0
  112. package/typings/v1/lib/logger/logger.d.ts +53 -0
  113. package/typings/v1/modules/express/express.d.ts +40 -0
  114. package/typings/v1/modules/express/index.d.ts +3 -0
  115. package/typings/v1/modules/index.d.ts +4 -0
  116. package/typings/v1/modules/mongoose/index.d.ts +3 -0
  117. package/typings/v1/modules/mongoose/mongoose.d.ts +48 -0
  118. package/typings/v1/sdk/index.d.ts +3 -0
  119. package/typings/v1/sdk/sdk.d.ts +158 -0
  120. package/typings/v1/security/auth-data.d.ts +36 -0
  121. package/typings/v1/security/index.d.ts +4 -0
  122. package/typings/v1/security/jwt.d.ts +36 -0
  123. package/typings/v1/services/auth/api/api-key.d.ts +144 -0
  124. package/typings/v1/services/auth/api/auth.d.ts +168 -0
  125. package/typings/v1/services/auth/api/index.d.ts +9 -0
  126. package/typings/v1/services/auth/api/permission-group.d.ts +95 -0
  127. package/typings/v1/services/auth/api/permission.d.ts +128 -0
  128. package/typings/v1/services/auth/api/role.d.ts +193 -0
  129. package/typings/v1/services/auth/api/tools.d.ts +33 -0
  130. package/typings/v1/services/auth/api/user.d.ts +391 -0
  131. package/typings/v1/services/auth/entities/_shared.d.ts +11 -0
  132. package/typings/v1/services/auth/entities/api-key.d.ts +29 -0
  133. package/typings/v1/services/auth/entities/federated-credential.d.ts +22 -0
  134. package/typings/v1/services/auth/entities/index.d.ts +9 -0
  135. package/typings/v1/services/auth/entities/permission-group.d.ts +20 -0
  136. package/typings/v1/services/auth/entities/permission.d.ts +24 -0
  137. package/typings/v1/services/auth/entities/role.d.ts +25 -0
  138. package/typings/v1/services/auth/entities/user.d.ts +153 -0
  139. package/typings/v1/services/auth/index.d.ts +5 -0
  140. package/typings/v1/services/auth/models/.DS_Store +0 -0
  141. package/typings/v1/services/auth/models/api-key.d.ts +19 -0
  142. package/typings/v1/services/auth/models/api-key.model.d.ts +3 -0
  143. package/typings/v1/services/auth/models/federated-credential.d.ts +24 -0
  144. package/typings/v1/services/auth/models/index.d.ts +9 -0
  145. package/typings/v1/services/auth/models/permission-group.d.ts +24 -0
  146. package/typings/v1/services/auth/models/permission.d.ts +22 -0
  147. package/typings/v1/services/auth/models/role.d.ts +22 -0
  148. package/typings/v1/services/auth/models/user.d.ts +22 -0
  149. package/typings/v1/services/content/api/article-type.d.ts +160 -0
  150. package/typings/v1/services/content/api/article.d.ts +108 -0
  151. package/typings/v1/services/content/api/comment.d.ts +106 -0
  152. package/typings/v1/services/content/api/index.d.ts +12 -0
  153. package/typings/v1/services/content/api/review.d.ts +105 -0
  154. package/typings/v1/services/content/api/taxonomy.d.ts +101 -0
  155. package/typings/v1/services/content/api/term.d.ts +101 -0
  156. package/typings/v1/services/content/api/translation.item.d.ts +195 -0
  157. package/typings/v1/services/content/api/translation.namespace.d.ts +135 -0
  158. package/typings/v1/services/content/api/translation.project.d.ts +196 -0
  159. package/typings/v1/services/content/api/translation.tools.d.ts +85 -0
  160. package/typings/v1/services/content/entities/article-type.d.ts +51 -0
  161. package/typings/v1/services/content/entities/article.d.ts +53 -0
  162. package/typings/v1/services/content/entities/comment.d.ts +34 -0
  163. package/typings/v1/services/content/entities/index.d.ts +11 -0
  164. package/typings/v1/services/content/entities/review.d.ts +35 -0
  165. package/typings/v1/services/content/entities/taxonomy.d.ts +40 -0
  166. package/typings/v1/services/content/entities/term.d.ts +43 -0
  167. package/typings/v1/services/content/entities/translation.item.d.ts +48 -0
  168. package/typings/v1/services/content/entities/translation.namespace.d.ts +29 -0
  169. package/typings/v1/services/content/entities/translation.project.d.ts +98 -0
  170. package/typings/v1/services/content/index.d.ts +5 -0
  171. package/typings/v1/services/content/models/article-type.d.ts +19 -0
  172. package/typings/v1/services/content/models/article.d.ts +19 -0
  173. package/typings/v1/services/content/models/comment.d.ts +19 -0
  174. package/typings/v1/services/content/models/index.d.ts +11 -0
  175. package/typings/v1/services/content/models/review.d.ts +19 -0
  176. package/typings/v1/services/content/models/taxonomy.d.ts +19 -0
  177. package/typings/v1/services/content/models/term.d.ts +19 -0
  178. package/typings/v1/services/content/models/translation.item.d.ts +21 -0
  179. package/typings/v1/services/content/models/translation.namespace.d.ts +22 -0
  180. package/typings/v1/services/content/models/translation.project.d.ts +21 -0
  181. package/typings/v1/services/index.d.ts +4 -0
  182. package/typings/v1/services/storage/api/index.d.ts +3 -0
  183. package/typings/v1/services/storage/api/uploaded-file.d.ts +166 -0
  184. package/typings/v1/services/storage/entities/index.d.ts +3 -0
  185. package/typings/v1/services/storage/entities/uploaded-file.d.ts +49 -0
  186. package/typings/v1/services/storage/index.d.ts +5 -0
  187. package/typings/v1/services/storage/models/index.d.ts +3 -0
  188. package/typings/v1/services/storage/models/uploaded-file.d.ts +19 -0
  189. package/typings/v1/services/system/api/app.d.ts +130 -0
  190. package/typings/v1/services/system/api/index.d.ts +3 -0
  191. package/typings/v1/services/system/entities/app.d.ts +97 -0
  192. package/typings/v1/services/system/entities/index.d.ts +3 -0
  193. package/typings/v1/services/system/index.d.ts +5 -0
  194. package/typings/v1/services/system/models/app.d.ts +19 -0
  195. package/typings/v1/services/system/models/index.d.ts +3 -0
  196. package/typings/v1/ui/admin/index.d.ts +1 -0
  197. package/typings/v1/ui/forms/article/custom-fieds/custom-field.d.ts +189 -0
  198. package/typings/v1/ui/forms/article/custom-fieds/fields/article_object.custom-field.d.ts +29 -0
  199. package/typings/v1/ui/forms/article/custom-fieds/fields/boolean.custom-field.d.ts +24 -0
  200. package/typings/v1/ui/forms/article/custom-fieds/fields/checkbox.custom-field.d.ts +26 -0
  201. package/typings/v1/ui/forms/article/custom-fieds/fields/date.custom-field.d.ts +23 -0
  202. package/typings/v1/ui/forms/article/custom-fieds/fields/date_range.custom-field.d.ts +26 -0
  203. package/typings/v1/ui/forms/article/custom-fieds/fields/file.custom-field.d.ts +26 -0
  204. package/typings/v1/ui/forms/article/custom-fieds/fields/image.custom-field.d.ts +25 -0
  205. package/typings/v1/ui/forms/article/custom-fieds/fields/index.d.ts +11 -0
  206. package/typings/v1/ui/forms/article/custom-fieds/fields/number.custom-field.d.ts +26 -0
  207. package/typings/v1/ui/forms/article/custom-fieds/fields/radiobox.custom-field.d.ts +27 -0
  208. package/typings/v1/ui/forms/article/custom-fieds/fields/select.custom-field.d.ts +27 -0
  209. package/typings/v1/ui/forms/article/custom-fieds/fields/text.custom-field.d.ts +26 -0
  210. package/typings/v1/ui/forms/article/custom-fieds/fields/time.custom-field.d.ts +24 -0
  211. package/typings/v1/ui/forms/article/custom-fieds/index.d.ts +1 -0
  212. package/typings/v1/ui/forms/article/index.d.ts +1 -0
  213. package/typings/v1/ui/forms/index.d.ts +1 -0
  214. package/typings/v1/ui/index.d.ts +3 -0
  215. package/typings/v1/ui/routes/index.d.ts +1 -0
  216. package/typings/v1/ui/routes/routes.d.ts +73 -0
  217. package/typings/v1/utils/api/index.d.ts +4 -0
  218. package/typings/v1/utils/api/request.d.ts +215 -0
  219. package/typings/v1/utils/api/response.d.ts +188 -0
  220. package/typings/v1/utils/common/common.d.ts +53 -0
  221. package/typings/v1/utils/common/index.d.ts +3 -0
  222. package/typings/v1/utils/dev/config.d.ts +135 -0
  223. package/typings/v1/utils/dev/index.d.ts +4 -0
  224. package/typings/v1/utils/dev/instrumentation.d.ts +41 -0
  225. package/typings/v1/utils/entities/entities.d.ts +66 -0
  226. package/typings/v1/utils/entities/index.d.ts +4 -0
  227. package/typings/v1/utils/entities/snapshots.d.ts +69 -0
  228. package/typings/v1/utils/index.d.ts +10 -0
  229. package/typings/v1/utils/models/index.d.ts +3 -0
  230. package/typings/v1/utils/models/models.d.ts +50 -0
  231. package/typings/v1/utils/seed/index.d.ts +3 -0
  232. package/typings/v1/utils/seed/locations.d.ts +41 -0
  233. package/typings/v1/utils/system/microservice.d.ts +11 -0
  234. package/typings/v1/utils/system/models.d.ts +21 -0
  235. package/typings/v1/utils/utils.d.ts +171 -0
@@ -0,0 +1,7 @@
1
+ import SDK = Levelup.CMS.V1.SDK;
2
+ export default class BaseAppContainer<TServiceName extends string> implements SDK.IAppContainer {
3
+ readonly sdk: SDK.ISdk;
4
+ protected services: Partial<Record<TServiceName, SDK.IServiceContainer>>;
5
+ constructor(sdk: SDK.ISdk);
6
+ }
7
+ //# sourceMappingURL=base.app-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.app-container.d.ts","sourceRoot":"","sources":["../src/base.app-container.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC;AAGhC,MAAM,CAAC,OAAO,OAAO,gBAAgB,CAAC,YAAY,SAAS,MAAM,CAC/D,YAAW,GAAG,CAAC,aAAa;IAE5B,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,CAAC;IAEvB,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC,CAAM;gBAElE,GAAG,EAAE,GAAG,CAAC,IAAI;CAG1B"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class BaseAppContainer {
4
+ sdk;
5
+ services = {};
6
+ constructor(sdk) {
7
+ this.sdk = sdk;
8
+ }
9
+ }
10
+ exports.default = BaseAppContainer;
@@ -0,0 +1,10 @@
1
+ import SDK = Levelup.CMS.V1.SDK;
2
+ export default class BaseClient implements SDK.IClient {
3
+ protected readonly prefix: SDK.PathPrefix;
4
+ protected readonly container: SDK.IServiceContainer;
5
+ constructor(container: SDK.IServiceContainer, prefix: SDK.PathPrefix);
6
+ protected generatePrefix(path?: SDK.PathPrefix, params?: {
7
+ [Param: string]: string | number;
8
+ }): string;
9
+ }
10
+ //# sourceMappingURL=base.client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.client.d.ts","sourceRoot":"","sources":["../src/base.client.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC;AAEhC,MAAM,CAAC,OAAO,OAAO,UAAW,YAAW,GAAG,CAAC,OAAO;IACpD,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC,UAAU,CAAC;IAC1C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC,iBAAiB,CAAC;gBAExC,SAAS,EAAE,GAAG,CAAC,iBAAiB,EAAE,MAAM,EAAE,GAAG,CAAC,UAAU;IAKpE,SAAS,CAAC,cAAc,CACtB,IAAI,GAAE,GAAG,CAAC,UAAgB,EAC1B,MAAM,GAAE;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;KAAO,GAChD,MAAM;CAQV"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class BaseClient {
4
+ prefix;
5
+ container;
6
+ constructor(container, prefix) {
7
+ this.container = container;
8
+ this.prefix = prefix;
9
+ }
10
+ generatePrefix(path = "/", params = {}) {
11
+ let result = `${this.container.prefix}${this.prefix}${path}`;
12
+ result = Object.keys(params).reduce((acc, key) => acc.replace(`:${key}`, params[key].toString()), result);
13
+ return result;
14
+ }
15
+ }
16
+ exports.default = BaseClient;
@@ -0,0 +1,8 @@
1
+ import SDK = Levelup.CMS.V1.SDK;
2
+ export default class BaseServiceContainer<TClientName extends string> implements SDK.IServiceContainer {
3
+ readonly sdk: SDK.ISdk;
4
+ readonly prefix: SDK.PathPrefix;
5
+ protected clients: Partial<Record<TClientName, SDK.IClient>>;
6
+ constructor(sdk: SDK.ISdk, prefix: SDK.PathPrefix);
7
+ }
8
+ //# sourceMappingURL=base.service-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.service-container.d.ts","sourceRoot":"","sources":["../src/base.service-container.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC;AAGhC,MAAM,CAAC,OAAO,OAAO,oBAAoB,CAAC,WAAW,SAAS,MAAM,CAAE,YAAW,GAAG,CAAC,iBAAiB;IAEpG,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC,UAAU,CAAC;IAEhC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAM;gBAEtD,GAAG,EAAE,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC,UAAU;CAMlD"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class BaseServiceContainer {
4
+ sdk;
5
+ prefix;
6
+ clients = {};
7
+ constructor(sdk, prefix) {
8
+ this.sdk = sdk;
9
+ this.prefix = prefix;
10
+ }
11
+ }
12
+ exports.default = BaseServiceContainer;
@@ -0,0 +1,13 @@
1
+ import BaseClient from '../../../base.client';
2
+ import SDK = Levelup.CMS.V1.SDK;
3
+ import ApiAlias = Levelup.CMS.V1.Auth.Api.ApiKeys;
4
+ export default class ApiKeysClient extends BaseClient {
5
+ constructor(container: SDK.IServiceContainer);
6
+ create(data: ApiAlias.Create.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Create.Response>>;
7
+ update(id: string, data: ApiAlias.Update.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Update.Response>>;
8
+ delete(id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Delete.Response>>;
9
+ restore(id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Delete.Response>>;
10
+ list(query: ApiAlias.List.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.List.Response>>;
11
+ getById(id: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
12
+ }
13
+ //# sourceMappingURL=api-keys.client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-keys.client.d.ts","sourceRoot":"","sources":["../../../../src/containers/auth/clients/api-keys.client.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAE9C,OAAO,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC;AAEhC,OAAO,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC;AAGlD,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,UAAU;gBAGvC,SAAS,EAAE,GAAG,CAAC,iBAAiB;IAKtC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOzH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOrI,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOtG,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOvG,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAOpH,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;CAOhJ"}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const base_client_1 = __importDefault(require("../../../base.client"));
7
+ class ApiKeysClient extends base_client_1.default {
8
+ constructor(container) {
9
+ super(container, '/api-keys');
10
+ }
11
+ // create
12
+ async create(data, config) {
13
+ return await this.container.sdk.httpClient.post(this.generatePrefix(), data, {
14
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
15
+ });
16
+ }
17
+ // update
18
+ async update(id, data, config) {
19
+ return await this.container.sdk.httpClient.put(this.generatePrefix("/:id", { id }), data, {
20
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
21
+ });
22
+ }
23
+ // delete
24
+ async delete(id, config) {
25
+ return await this.container.sdk.httpClient.delete(this.generatePrefix("/:id", { id }), {}, {
26
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
27
+ });
28
+ }
29
+ // restore
30
+ async restore(id, config) {
31
+ return await this.container.sdk.httpClient.delete(this.generatePrefix(`/${id}/restore`), {}, {
32
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
33
+ });
34
+ }
35
+ // list
36
+ async list(query, config) {
37
+ return await this.container.sdk.httpClient.get(this.generatePrefix(), query, {
38
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
39
+ });
40
+ }
41
+ // getById
42
+ async getById(id, params, config) {
43
+ return await this.container.sdk.httpClient.get(this.generatePrefix("/:id", { id }), params, {
44
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
45
+ });
46
+ }
47
+ }
48
+ exports.default = ApiKeysClient;
@@ -0,0 +1,12 @@
1
+ import BaseClient from '../../../base.client';
2
+ import SDK = Levelup.CMS.V1.SDK;
3
+ import ApiAlias = Levelup.CMS.V1.Auth.Api.Auth;
4
+ export default class AuthClient extends BaseClient {
5
+ constructor(container: SDK.IServiceContainer);
6
+ register(params: ApiAlias.Signup.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Signup.Response>>;
7
+ login(params: ApiAlias.Signin.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Signin.Response>>;
8
+ logout(): Promise<SDK.TResponseDatum<ApiAlias.Signin.Response>>;
9
+ refreshToken(params: ApiAlias.RefreshToken.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.RefreshToken.Response>>;
10
+ authenticateAsAnotherUser(user_id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Signin.Response>>;
11
+ }
12
+ //# sourceMappingURL=auth.client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.client.d.ts","sourceRoot":"","sources":["../../../../src/containers/auth/clients/auth.client.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAE9C,OAAO,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC;AAGhC,OAAO,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;AAG/C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,UAAU;gBAGpC,SAAS,EAAE,GAAG,CAAC,iBAAiB;IAKtC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAM7H,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAM1H,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAI/D,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAK7I,yBAAyB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;CASrI"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const base_client_1 = __importDefault(require("../../../base.client"));
7
+ class AuthClient extends base_client_1.default {
8
+ constructor(container) {
9
+ super(container, '/auth');
10
+ }
11
+ async register(params, config) {
12
+ return await this.container.sdk.httpClient.post(this.generatePrefix('/register'), params, {
13
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
14
+ });
15
+ }
16
+ async login(params, config) {
17
+ return await this.container.sdk.httpClient.post(this.generatePrefix('/login'), params, {
18
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
19
+ });
20
+ }
21
+ async logout() {
22
+ return await this.container.sdk.httpClient.post(this.generatePrefix('/logout'));
23
+ }
24
+ async refreshToken(params, config) {
25
+ return await this.container.sdk.httpClient.post(this.generatePrefix('/refresh-token'), params, {
26
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
27
+ });
28
+ }
29
+ async authenticateAsAnotherUser(user_id, config) {
30
+ return await this.container.sdk.httpClient.post(this.generatePrefix('/authenticate-as-another-user'), {
31
+ data: {
32
+ user_id
33
+ }
34
+ }, {
35
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
36
+ });
37
+ }
38
+ }
39
+ exports.default = AuthClient;
@@ -0,0 +1,12 @@
1
+ import BaseClient from '../../../base.client';
2
+ import SDK = Levelup.CMS.V1.SDK;
3
+ import ApiAlias = Levelup.CMS.V1.Auth.Api.PermissionGroups;
4
+ export default class PermissionGroupsClient extends BaseClient {
5
+ constructor(container: SDK.IServiceContainer);
6
+ create(data: ApiAlias.Create.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Create.Response>>;
7
+ update(id: string, data: ApiAlias.Update.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Update.Response>>;
8
+ delete(id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Delete.Response>>;
9
+ restore(id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Delete.Response>>;
10
+ list(query: ApiAlias.List.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.List.Response>>;
11
+ }
12
+ //# sourceMappingURL=permission-groups.client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permission-groups.client.d.ts","sourceRoot":"","sources":["../../../../src/containers/auth/clients/permission-groups.client.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAE9C,OAAO,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC;AAEhC,OAAO,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC;AAG3D,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,UAAU;gBAGhD,SAAS,EAAE,GAAG,CAAC,iBAAiB;IAKtC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOzH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOrI,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOtG,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOvG,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;CAO3H"}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const base_client_1 = __importDefault(require("../../../base.client"));
7
+ class PermissionGroupsClient extends base_client_1.default {
8
+ constructor(container) {
9
+ super(container, '/permission-groups');
10
+ }
11
+ // create
12
+ async create(data, config) {
13
+ return await this.container.sdk.httpClient.post(this.generatePrefix(), data, {
14
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
15
+ });
16
+ }
17
+ // update
18
+ async update(id, data, config) {
19
+ return await this.container.sdk.httpClient.put(this.generatePrefix("/:id", { id }), data, {
20
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
21
+ });
22
+ }
23
+ // delete
24
+ async delete(id, config) {
25
+ return await this.container.sdk.httpClient.delete(this.generatePrefix("/:id", { id }), {}, {
26
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
27
+ });
28
+ }
29
+ // restore
30
+ async restore(id, config) {
31
+ return await this.container.sdk.httpClient.delete(this.generatePrefix(`/${id}/restore`), {}, {
32
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
33
+ });
34
+ }
35
+ // list
36
+ async list(query, config) {
37
+ return await this.container.sdk.httpClient.get(this.generatePrefix(), query, {
38
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
39
+ });
40
+ }
41
+ }
42
+ exports.default = PermissionGroupsClient;
@@ -0,0 +1,13 @@
1
+ import BaseClient from '../../../base.client';
2
+ import SDK = Levelup.CMS.V1.SDK;
3
+ import ApiAlias = Levelup.CMS.V1.Auth.Api.Permissions;
4
+ export default class PermissionsClient extends BaseClient {
5
+ constructor(container: SDK.IServiceContainer);
6
+ create(data: ApiAlias.Create.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Create.Response>>;
7
+ update(id: string, data: ApiAlias.Update.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Update.Response>>;
8
+ delete(id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Delete.Response>>;
9
+ restore(id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Delete.Response>>;
10
+ list(query: ApiAlias.List.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.List.Response>>;
11
+ getById(id: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
12
+ }
13
+ //# sourceMappingURL=permissions.client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permissions.client.d.ts","sourceRoot":"","sources":["../../../../src/containers/auth/clients/permissions.client.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAE9C,OAAO,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC;AAEhC,OAAO,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC;AAGtD,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,UAAU;gBAG3C,SAAS,EAAE,GAAG,CAAC,iBAAiB;IAKtC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOzH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOrI,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOtG,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOvG,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAOpH,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;CAOhJ"}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const base_client_1 = __importDefault(require("../../../base.client"));
7
+ class PermissionsClient extends base_client_1.default {
8
+ constructor(container) {
9
+ super(container, '/permissions');
10
+ }
11
+ // create
12
+ async create(data, config) {
13
+ return await this.container.sdk.httpClient.post(this.generatePrefix(), data, {
14
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
15
+ });
16
+ }
17
+ // update
18
+ async update(id, data, config) {
19
+ return await this.container.sdk.httpClient.put(this.generatePrefix("/:id", { id }), data, {
20
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
21
+ });
22
+ }
23
+ // delete
24
+ async delete(id, config) {
25
+ return await this.container.sdk.httpClient.delete(this.generatePrefix("/:id", { id }), {}, {
26
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
27
+ });
28
+ }
29
+ // restore
30
+ async restore(id, config) {
31
+ return await this.container.sdk.httpClient.delete(this.generatePrefix(`/${id}/restore`), {}, {
32
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
33
+ });
34
+ }
35
+ // list
36
+ async list(query, config) {
37
+ return await this.container.sdk.httpClient.get(this.generatePrefix(), query, {
38
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
39
+ });
40
+ }
41
+ // getById
42
+ async getById(id, params, config) {
43
+ return await this.container.sdk.httpClient.get(this.generatePrefix("/:id", { id }), params, {
44
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
45
+ });
46
+ }
47
+ }
48
+ exports.default = PermissionsClient;
@@ -0,0 +1,17 @@
1
+ import BaseClient from '../../../base.client';
2
+ import SDK = Levelup.CMS.V1.SDK;
3
+ import ApiAlias = Levelup.CMS.V1.Auth.Api.Roles;
4
+ export default class RolesClient extends BaseClient {
5
+ constructor(container: SDK.IServiceContainer);
6
+ create(data: ApiAlias.Create.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Create.Response>>;
7
+ update(id: string, data: ApiAlias.Update.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Update.Response>>;
8
+ delete(id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Delete.Response>>;
9
+ restore(id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Delete.Response>>;
10
+ list(query: ApiAlias.List.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.List.Response>>;
11
+ getById(id: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
12
+ getByTrackingId(tracking_id: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
13
+ getByName(name: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
14
+ listRolePermissions(id: string, params?: ApiAlias.ListRolePermissions.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.ListRolePermissions.Response>>;
15
+ changePermissions(id: string, data: ApiAlias.ChangePermissions.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.ChangePermissions.Response>>;
16
+ }
17
+ //# sourceMappingURL=roles.client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roles.client.d.ts","sourceRoot":"","sources":["../../../../src/containers/auth/clients/roles.client.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAE9C,OAAO,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC;AAEhC,OAAO,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;AAGhD,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,UAAU;gBAGrC,SAAS,EAAE,GAAG,CAAC,iBAAiB;IAKtC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOzH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOrI,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOtG,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOvG,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAOpH,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOzI,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAO1J,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAO7I,mBAAmB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,mBAAmB,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAO/K,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,iBAAiB,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;CAM7K"}
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const base_client_1 = __importDefault(require("../../../base.client"));
7
+ class RolesClient extends base_client_1.default {
8
+ constructor(container) {
9
+ super(container, '/roles');
10
+ }
11
+ // create
12
+ async create(data, config) {
13
+ return await this.container.sdk.httpClient.post(this.generatePrefix(), data, {
14
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
15
+ });
16
+ }
17
+ // update
18
+ async update(id, data, config) {
19
+ return await this.container.sdk.httpClient.put(this.generatePrefix("/:id", { id }), data, {
20
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
21
+ });
22
+ }
23
+ // delete
24
+ async delete(id, config) {
25
+ return await this.container.sdk.httpClient.delete(this.generatePrefix("/:id", { id }), {}, {
26
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
27
+ });
28
+ }
29
+ // restore
30
+ async restore(id, config) {
31
+ return await this.container.sdk.httpClient.delete(this.generatePrefix(`/${id}/restore`), {}, {
32
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
33
+ });
34
+ }
35
+ // list
36
+ async list(query, config) {
37
+ return await this.container.sdk.httpClient.get(this.generatePrefix(), query, {
38
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
39
+ });
40
+ }
41
+ // getById
42
+ async getById(id, params, config) {
43
+ return await this.container.sdk.httpClient.get(this.generatePrefix("/:id", { id }), params, {
44
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
45
+ });
46
+ }
47
+ // getByTrackingId
48
+ async getByTrackingId(tracking_id, params, config) {
49
+ return await this.container.sdk.httpClient.get(this.generatePrefix("/by-tracking-id/:tracking_id", { tracking_id }), params, {
50
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
51
+ });
52
+ }
53
+ // getByName
54
+ async getByName(name, params, config) {
55
+ return await this.container.sdk.httpClient.get(this.generatePrefix(`/by-name/${name}`), params, {
56
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
57
+ });
58
+ }
59
+ // listRolePermissions
60
+ async listRolePermissions(id, params, config) {
61
+ return await this.container.sdk.httpClient.get(this.generatePrefix(`/${id}/permissions`), params, {
62
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
63
+ });
64
+ }
65
+ // changePermissions
66
+ async changePermissions(id, data, config) {
67
+ return await this.container.sdk.httpClient.put(this.generatePrefix(`/${id}/change-permissions`), data, {
68
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config)
69
+ });
70
+ }
71
+ }
72
+ exports.default = RolesClient;
@@ -0,0 +1,26 @@
1
+ import BaseClient from '../../../base.client';
2
+ import SDK = Levelup.CMS.V1.SDK;
3
+ import ApiAlias = Levelup.CMS.V1.Users.Api.Users;
4
+ export default class UsersClient extends BaseClient {
5
+ constructor(container: SDK.IServiceContainer);
6
+ create(data: ApiAlias.Create.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Create.Response>>;
7
+ createStoreTeamMember(data: ApiAlias.Create.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Create.Response>>;
8
+ update(id: string, data: ApiAlias.Update.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Update.Response>>;
9
+ updateProfile(id: string, data: ApiAlias.UpdateProfile.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.UpdateProfile.Response>>;
10
+ updatePreferences(id: string, data: ApiAlias.UpdatePreferences.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.UpdatePreferences.Response>>;
11
+ delete(id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Delete.Response>>;
12
+ restore(id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Delete.Response>>;
13
+ bulkDelete(data: ApiAlias.BulkDelete.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.BulkDelete.Response>>;
14
+ list(query: ApiAlias.List.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.List.Response>>;
15
+ getById(id: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
16
+ getByTrackingId(tracking_id: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
17
+ getByName(name: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
18
+ relateToCompany(id: string, company_id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Update.Response>>;
19
+ relateToStore(id: string, store_id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Update.Response>>;
20
+ listUserPermissions(id: string, params?: ApiAlias.ListUserPermissions.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.ListUserPermissions.Response>>;
21
+ changePermissions(id: string, data: ApiAlias.ChangePermissions.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.ChangePermissions.Response>>;
22
+ changeSuspendStatus(id: string, data?: ApiAlias.ChangeSuspendStatus.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.ChangePermissions.Response>>;
23
+ setLastManagedStore(store_id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.SetLastManagedStore.Response>>;
24
+ setLastManagedOffice(store_id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.SetLastManagedOffice.Response>>;
25
+ }
26
+ //# sourceMappingURL=users.client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.client.d.ts","sourceRoot":"","sources":["../../../../src/containers/auth/clients/users.client.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,128 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const base_client_1 = __importDefault(require("../../../base.client"));
7
+ class UsersClient extends base_client_1.default {
8
+ constructor(container) {
9
+ super(container, "/users");
10
+ }
11
+ // create
12
+ async create(data, config) {
13
+ return await this.container.sdk.httpClient.post(this.generatePrefix(), data, {
14
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config),
15
+ });
16
+ }
17
+ // createStoreTeamMember
18
+ async createStoreTeamMember(data, config) {
19
+ return await this.container.sdk.httpClient.post(this.generatePrefix("/store-team-member"), data, {
20
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config),
21
+ });
22
+ }
23
+ // update
24
+ async update(id, data, config) {
25
+ return await this.container.sdk.httpClient.put(this.generatePrefix("/:id", { id }), data, {
26
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config),
27
+ });
28
+ }
29
+ // updateProfile
30
+ async updateProfile(id, data, config) {
31
+ return await this.container.sdk.httpClient.put(this.generatePrefix(`/profile/${id}`), data, {
32
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config),
33
+ });
34
+ }
35
+ // updatePreferences
36
+ async updatePreferences(id, data, config) {
37
+ return await this.container.sdk.httpClient.put(this.generatePrefix(`/preferences/${id}`), data, {
38
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config),
39
+ });
40
+ }
41
+ // delete
42
+ async delete(id, config) {
43
+ return await this.container.sdk.httpClient.delete(this.generatePrefix("/:id", { id }), {}, {
44
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config),
45
+ });
46
+ }
47
+ // restore
48
+ async restore(id, config) {
49
+ return await this.container.sdk.httpClient.delete(this.generatePrefix(`/${id}/restore`), {}, {
50
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config),
51
+ });
52
+ }
53
+ // bulkDelete
54
+ async bulkDelete(data, config) {
55
+ return await this.container.sdk.httpClient.delete(this.generatePrefix(`/bulk-delete`), data, {
56
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config),
57
+ });
58
+ }
59
+ // list
60
+ async list(query, config) {
61
+ return await this.container.sdk.httpClient.get(this.generatePrefix(), query, {
62
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config),
63
+ });
64
+ }
65
+ // getById
66
+ async getById(id, params, config) {
67
+ return await this.container.sdk.httpClient.get(this.generatePrefix("/:id", { id }), params, {
68
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config),
69
+ });
70
+ }
71
+ // getByTrackingId
72
+ async getByTrackingId(tracking_id, params, config) {
73
+ return await this.container.sdk.httpClient.get(this.generatePrefix("/by-tracking-id/:tracking_id", { tracking_id }), params, {
74
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config),
75
+ });
76
+ }
77
+ // getByName
78
+ async getByName(name, params, config) {
79
+ return await this.container.sdk.httpClient.get(this.generatePrefix(`/by-name/${name}`), params, {
80
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config),
81
+ });
82
+ }
83
+ async relateToCompany(id, company_id, config) {
84
+ return await this.container.sdk.httpClient.put(this.generatePrefix(`/${id}/relate-to-company/${company_id}`), {}, {
85
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config),
86
+ });
87
+ }
88
+ async relateToStore(id, store_id, config) {
89
+ return await this.container.sdk.httpClient.put(this.generatePrefix(`/${id}/relate-to-store/${store_id}`), {}, {
90
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config),
91
+ });
92
+ }
93
+ // listUserPermissions
94
+ async listUserPermissions(id, params, config) {
95
+ return await this.container.sdk.httpClient.get(this.generatePrefix(`/${id}/permissions`), params, {
96
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config),
97
+ });
98
+ }
99
+ // changePermissions
100
+ async changePermissions(id, data, config) {
101
+ return await this.container.sdk.httpClient.put(this.generatePrefix(`/${id}/change-permissions`), data, {
102
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config),
103
+ });
104
+ }
105
+ // changePermissions
106
+ async changeSuspendStatus(id, data, config) {
107
+ return await this.container.sdk.httpClient.put(this.generatePrefix(`/${id}/change-suspend-status`), data, {
108
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config),
109
+ });
110
+ }
111
+ // setLastManagedStore
112
+ async setLastManagedStore(store_id, config) {
113
+ return await this.container.sdk.httpClient.put(this.generatePrefix(`/me/set-last-managed-store`), {
114
+ store_id,
115
+ }, {
116
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config),
117
+ });
118
+ }
119
+ // setLastManagedOffice
120
+ async setLastManagedOffice(store_id, config) {
121
+ return await this.container.sdk.httpClient.put(this.generatePrefix(`/me/set-last-managed-office`), {
122
+ store_id,
123
+ }, {
124
+ headers: this.container.sdk.generateHeadersFromRequestConfig(config),
125
+ });
126
+ }
127
+ }
128
+ exports.default = UsersClient;
@@ -0,0 +1,23 @@
1
+ import AuthClient from './clients/auth.client';
2
+ import BaseServiceContainer from '../../base.service-container';
3
+ import PermissionsClient from './clients/permissions.client';
4
+ import PermissionGroupsClient from './clients/permission-groups.client';
5
+ import RolesClient from './clients/roles.client';
6
+ import UsersClient from './clients/users.client';
7
+ /**
8
+ * @description Typing aliasing
9
+ */
10
+ import SDK = Levelup.CMS.V1.SDK;
11
+ import ApiKeysClient from './clients/api-keys.client';
12
+ type TClientName = 'auth' | 'apiKeys' | 'roles' | 'permissions' | 'permissionsGroups' | 'users';
13
+ export default class AuthServiceContainer extends BaseServiceContainer<TClientName> {
14
+ constructor(sdk: SDK.ISdk);
15
+ get auth(): AuthClient;
16
+ get users(): UsersClient;
17
+ get apiKeys(): ApiKeysClient;
18
+ get permissions(): PermissionsClient;
19
+ get roles(): RolesClient;
20
+ get permissionsGroups(): PermissionGroupsClient;
21
+ }
22
+ export {};
23
+ //# sourceMappingURL=service-container.d.ts.map