@wix/auto_sdk_editor-branches_branches 1.0.11 → 1.0.13

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.
Files changed (125) hide show
  1. package/build/cjs/index.d.ts +89 -1
  2. package/build/cjs/index.js +730 -15
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +1265 -1
  5. package/build/cjs/index.typings.js +606 -15
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +317 -1
  8. package/build/cjs/meta.js +434 -15
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +89 -0
  11. package/build/es/index.mjs +691 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/{internal/cjs/src/editor-branches-v1-branch-branches.universal.d.ts → es/index.typings.d.mts} +156 -109
  14. package/build/es/index.typings.mjs +570 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/meta.d.mts +317 -0
  17. package/build/es/meta.mjs +404 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/internal/cjs/index.d.ts +89 -1
  20. package/build/internal/cjs/index.js +730 -15
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +1265 -1
  23. package/build/internal/cjs/index.typings.js +606 -15
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +317 -1
  26. package/build/internal/cjs/meta.js +434 -15
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +89 -0
  29. package/build/internal/es/index.mjs +691 -0
  30. package/build/internal/es/index.mjs.map +1 -0
  31. package/build/{cjs/src/editor-branches-v1-branch-branches.universal.d.ts → internal/es/index.typings.d.mts} +156 -109
  32. package/build/internal/es/index.typings.mjs +570 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -0
  34. package/build/internal/es/meta.d.mts +317 -0
  35. package/build/internal/es/meta.mjs +404 -0
  36. package/build/internal/es/meta.mjs.map +1 -0
  37. package/package.json +12 -10
  38. package/build/cjs/src/editor-branches-v1-branch-branches.context.d.ts +0 -21
  39. package/build/cjs/src/editor-branches-v1-branch-branches.context.js +0 -33
  40. package/build/cjs/src/editor-branches-v1-branch-branches.context.js.map +0 -1
  41. package/build/cjs/src/editor-branches-v1-branch-branches.http.d.ts +0 -22
  42. package/build/cjs/src/editor-branches-v1-branch-branches.http.js +0 -286
  43. package/build/cjs/src/editor-branches-v1-branch-branches.http.js.map +0 -1
  44. package/build/cjs/src/editor-branches-v1-branch-branches.meta.d.ts +0 -27
  45. package/build/cjs/src/editor-branches-v1-branch-branches.meta.js +0 -161
  46. package/build/cjs/src/editor-branches-v1-branch-branches.meta.js.map +0 -1
  47. package/build/cjs/src/editor-branches-v1-branch-branches.public.d.ts +0 -69
  48. package/build/cjs/src/editor-branches-v1-branch-branches.public.js +0 -92
  49. package/build/cjs/src/editor-branches-v1-branch-branches.public.js.map +0 -1
  50. package/build/cjs/src/editor-branches-v1-branch-branches.types.d.ts +0 -930
  51. package/build/cjs/src/editor-branches-v1-branch-branches.types.js +0 -160
  52. package/build/cjs/src/editor-branches-v1-branch-branches.types.js.map +0 -1
  53. package/build/cjs/src/editor-branches-v1-branch-branches.universal.js +0 -433
  54. package/build/cjs/src/editor-branches-v1-branch-branches.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/src/editor-branches-v1-branch-branches.context.d.ts +0 -21
  65. package/build/es/src/editor-branches-v1-branch-branches.context.js +0 -21
  66. package/build/es/src/editor-branches-v1-branch-branches.context.js.map +0 -1
  67. package/build/es/src/editor-branches-v1-branch-branches.http.d.ts +0 -22
  68. package/build/es/src/editor-branches-v1-branch-branches.http.js +0 -276
  69. package/build/es/src/editor-branches-v1-branch-branches.http.js.map +0 -1
  70. package/build/es/src/editor-branches-v1-branch-branches.meta.d.ts +0 -27
  71. package/build/es/src/editor-branches-v1-branch-branches.meta.js +0 -128
  72. package/build/es/src/editor-branches-v1-branch-branches.meta.js.map +0 -1
  73. package/build/es/src/editor-branches-v1-branch-branches.public.d.ts +0 -69
  74. package/build/es/src/editor-branches-v1-branch-branches.public.js +0 -73
  75. package/build/es/src/editor-branches-v1-branch-branches.public.js.map +0 -1
  76. package/build/es/src/editor-branches-v1-branch-branches.types.d.ts +0 -930
  77. package/build/es/src/editor-branches-v1-branch-branches.types.js +0 -157
  78. package/build/es/src/editor-branches-v1-branch-branches.types.js.map +0 -1
  79. package/build/es/src/editor-branches-v1-branch-branches.universal.d.ts +0 -1218
  80. package/build/es/src/editor-branches-v1-branch-branches.universal.js +0 -400
  81. package/build/es/src/editor-branches-v1-branch-branches.universal.js.map +0 -1
  82. package/build/internal/cjs/src/editor-branches-v1-branch-branches.context.d.ts +0 -21
  83. package/build/internal/cjs/src/editor-branches-v1-branch-branches.context.js +0 -33
  84. package/build/internal/cjs/src/editor-branches-v1-branch-branches.context.js.map +0 -1
  85. package/build/internal/cjs/src/editor-branches-v1-branch-branches.http.d.ts +0 -22
  86. package/build/internal/cjs/src/editor-branches-v1-branch-branches.http.js +0 -286
  87. package/build/internal/cjs/src/editor-branches-v1-branch-branches.http.js.map +0 -1
  88. package/build/internal/cjs/src/editor-branches-v1-branch-branches.meta.d.ts +0 -27
  89. package/build/internal/cjs/src/editor-branches-v1-branch-branches.meta.js +0 -161
  90. package/build/internal/cjs/src/editor-branches-v1-branch-branches.meta.js.map +0 -1
  91. package/build/internal/cjs/src/editor-branches-v1-branch-branches.public.d.ts +0 -69
  92. package/build/internal/cjs/src/editor-branches-v1-branch-branches.public.js +0 -92
  93. package/build/internal/cjs/src/editor-branches-v1-branch-branches.public.js.map +0 -1
  94. package/build/internal/cjs/src/editor-branches-v1-branch-branches.types.d.ts +0 -930
  95. package/build/internal/cjs/src/editor-branches-v1-branch-branches.types.js +0 -160
  96. package/build/internal/cjs/src/editor-branches-v1-branch-branches.types.js.map +0 -1
  97. package/build/internal/cjs/src/editor-branches-v1-branch-branches.universal.js +0 -433
  98. package/build/internal/cjs/src/editor-branches-v1-branch-branches.universal.js.map +0 -1
  99. package/build/internal/es/index.d.ts +0 -1
  100. package/build/internal/es/index.js +0 -2
  101. package/build/internal/es/index.js.map +0 -1
  102. package/build/internal/es/index.typings.d.ts +0 -1
  103. package/build/internal/es/index.typings.js +0 -2
  104. package/build/internal/es/index.typings.js.map +0 -1
  105. package/build/internal/es/meta.d.ts +0 -1
  106. package/build/internal/es/meta.js +0 -2
  107. package/build/internal/es/meta.js.map +0 -1
  108. package/build/internal/es/src/editor-branches-v1-branch-branches.context.d.ts +0 -21
  109. package/build/internal/es/src/editor-branches-v1-branch-branches.context.js +0 -21
  110. package/build/internal/es/src/editor-branches-v1-branch-branches.context.js.map +0 -1
  111. package/build/internal/es/src/editor-branches-v1-branch-branches.http.d.ts +0 -22
  112. package/build/internal/es/src/editor-branches-v1-branch-branches.http.js +0 -276
  113. package/build/internal/es/src/editor-branches-v1-branch-branches.http.js.map +0 -1
  114. package/build/internal/es/src/editor-branches-v1-branch-branches.meta.d.ts +0 -27
  115. package/build/internal/es/src/editor-branches-v1-branch-branches.meta.js +0 -128
  116. package/build/internal/es/src/editor-branches-v1-branch-branches.meta.js.map +0 -1
  117. package/build/internal/es/src/editor-branches-v1-branch-branches.public.d.ts +0 -69
  118. package/build/internal/es/src/editor-branches-v1-branch-branches.public.js +0 -73
  119. package/build/internal/es/src/editor-branches-v1-branch-branches.public.js.map +0 -1
  120. package/build/internal/es/src/editor-branches-v1-branch-branches.types.d.ts +0 -930
  121. package/build/internal/es/src/editor-branches-v1-branch-branches.types.js +0 -157
  122. package/build/internal/es/src/editor-branches-v1-branch-branches.types.js.map +0 -1
  123. package/build/internal/es/src/editor-branches-v1-branch-branches.universal.d.ts +0 -1218
  124. package/build/internal/es/src/editor-branches-v1-branch-branches.universal.js +0 -400
  125. package/build/internal/es/src/editor-branches-v1-branch-branches.universal.js.map +0 -1
@@ -1,73 +0,0 @@
1
- import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';
2
- import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
3
- import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
4
- import { EventDefinition } from '@wix/sdk-types';
5
- import { createBranch as universalCreateBranch, deleteBranch as universalDeleteBranch, getBranch as universalGetBranch, getDefaultBranch as universalGetDefaultBranch, queryBranches as universalQueryBranches, setDefaultBranch as universalSetDefaultBranch, updateBranch as universalUpdateBranch, } from './editor-branches-v1-branch-branches.universal.js';
6
- export const __metadata = { PACKAGE_NAME: '@wix/editor-branches' };
7
- export function createBranch(httpClient) {
8
- return (branch) => universalCreateBranch(branch,
9
- // @ts-ignore
10
- { httpClient });
11
- }
12
- export function getBranch(httpClient) {
13
- return (branchId) => universalGetBranch(branchId,
14
- // @ts-ignore
15
- { httpClient });
16
- }
17
- export function updateBranch(httpClient) {
18
- return (_id, branch) => universalUpdateBranch(_id, branch,
19
- // @ts-ignore
20
- { httpClient });
21
- }
22
- export function deleteBranch(httpClient) {
23
- return (branchId) => universalDeleteBranch(branchId,
24
- // @ts-ignore
25
- { httpClient });
26
- }
27
- export function queryBranches(httpClient) {
28
- return () => universalQueryBranches(
29
- // @ts-ignore
30
- { httpClient });
31
- }
32
- export function setDefaultBranch(httpClient) {
33
- return (branchId) => universalSetDefaultBranch(branchId,
34
- // @ts-ignore
35
- { httpClient });
36
- }
37
- export function getDefaultBranch(httpClient) {
38
- return () => universalGetDefaultBranch(
39
- // @ts-ignore
40
- { httpClient });
41
- }
42
- export const onBranchCreated = EventDefinition('wix.editor.branches.v1.branch_created', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
43
- {
44
- transformFn: transformRESTTimestampToSDKTimestamp,
45
- paths: [
46
- { path: 'entity.createdDate' },
47
- { path: 'entity.updatedDate' },
48
- { path: 'metadata.eventTime' },
49
- ],
50
- },
51
- ])))();
52
- export const onBranchDeleted = EventDefinition('wix.editor.branches.v1.branch_deleted', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
53
- {
54
- transformFn: transformRESTTimestampToSDKTimestamp,
55
- paths: [
56
- { path: 'entity.createdDate' },
57
- { path: 'entity.updatedDate' },
58
- { path: 'metadata.eventTime' },
59
- ],
60
- },
61
- ])))();
62
- export const onBranchUpdated = EventDefinition('wix.editor.branches.v1.branch_updated', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
63
- {
64
- transformFn: transformRESTTimestampToSDKTimestamp,
65
- paths: [
66
- { path: 'entity.createdDate' },
67
- { path: 'entity.updatedDate' },
68
- { path: 'metadata.eventTime' },
69
- ],
70
- },
71
- ])))();
72
- export { DeleteStatus, EditorTypeOptions, Namespace, SiteCreatedContext, SortOrder, SourceType, State, Type, WebhookIdentityType, } from './editor-branches-v1-branch-branches.universal.js';
73
- //# sourceMappingURL=editor-branches-v1-branch-branches.public.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"editor-branches-v1-branch-branches.public.js","sourceRoot":"","sources":["../../../../src/editor-branches-v1-branch-branches.public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,eAAe,EAAgC,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EASL,YAAY,IAAI,qBAAqB,EACrC,YAAY,IAAI,qBAAqB,EACrC,SAAS,IAAI,kBAAkB,EAC/B,gBAAgB,IAAI,yBAAyB,EAC7C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