@o3r/core 14.1.0-prerelease.4 → 14.1.0-prerelease.41

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 (179) hide show
  1. package/package.json +15 -15
  2. package/core/application/build-properties.d.ts +0 -50
  3. package/core/application/build-properties.d.ts.map +0 -1
  4. package/core/application/build-properties.js +0 -17
  5. package/core/application/build-properties.js.map +0 -1
  6. package/core/application/dgp-interfaces.d.ts +0 -35
  7. package/core/application/dgp-interfaces.d.ts.map +0 -1
  8. package/core/application/dgp-interfaces.js +0 -2
  9. package/core/application/dgp-interfaces.js.map +0 -1
  10. package/core/application/index.d.ts +0 -4
  11. package/core/application/index.d.ts.map +0 -1
  12. package/core/application/index.js +0 -4
  13. package/core/application/index.js.map +0 -1
  14. package/core/application/runtime.d.ts +0 -14
  15. package/core/application/runtime.d.ts.map +0 -1
  16. package/core/application/runtime.js +0 -2
  17. package/core/application/runtime.js.map +0 -1
  18. package/core/common/index.d.ts +0 -3
  19. package/core/common/index.d.ts.map +0 -1
  20. package/core/common/index.js +0 -3
  21. package/core/common/index.js.map +0 -1
  22. package/core/common/interface-utils.d.ts +0 -7
  23. package/core/common/interface-utils.d.ts.map +0 -1
  24. package/core/common/interface-utils.js +0 -2
  25. package/core/common/interface-utils.js.map +0 -1
  26. package/core/common/label-value.d.ts +0 -8
  27. package/core/common/label-value.d.ts.map +0 -1
  28. package/core/common/label-value.js +0 -2
  29. package/core/common/label-value.js.map +0 -1
  30. package/core/devkit/devtools-interface.d.ts +0 -34
  31. package/core/devkit/devtools-interface.d.ts.map +0 -1
  32. package/core/devkit/devtools-interface.js +0 -2
  33. package/core/devkit/devtools-interface.js.map +0 -1
  34. package/core/devkit/index.d.ts +0 -2
  35. package/core/devkit/index.d.ts.map +0 -1
  36. package/core/devkit/index.js +0 -2
  37. package/core/devkit/index.js.map +0 -1
  38. package/core/index.d.ts +0 -7
  39. package/core/index.d.ts.map +0 -1
  40. package/core/index.js +0 -7
  41. package/core/index.js.map +0 -1
  42. package/core/interfaces/configuration.d.ts +0 -90
  43. package/core/interfaces/configuration.d.ts.map +0 -1
  44. package/core/interfaces/configuration.js +0 -2
  45. package/core/interfaces/configuration.js.map +0 -1
  46. package/core/interfaces/context.d.ts +0 -57
  47. package/core/interfaces/context.d.ts.map +0 -1
  48. package/core/interfaces/context.js +0 -2
  49. package/core/interfaces/context.js.map +0 -1
  50. package/core/interfaces/index.d.ts +0 -5
  51. package/core/interfaces/index.d.ts.map +0 -1
  52. package/core/interfaces/index.js +0 -5
  53. package/core/interfaces/index.js.map +0 -1
  54. package/core/interfaces/item-identifier.d.ts +0 -14
  55. package/core/interfaces/item-identifier.d.ts.map +0 -1
  56. package/core/interfaces/item-identifier.js +0 -2
  57. package/core/interfaces/item-identifier.js.map +0 -1
  58. package/core/interfaces/translation.d.ts +0 -7
  59. package/core/interfaces/translation.d.ts.map +0 -1
  60. package/core/interfaces/translation.js +0 -2
  61. package/core/interfaces/translation.js.map +0 -1
  62. package/core/metadata/component-decorator.d.ts +0 -32
  63. package/core/metadata/component-decorator.d.ts.map +0 -1
  64. package/core/metadata/component-decorator.js +0 -18
  65. package/core/metadata/component-decorator.js.map +0 -1
  66. package/core/metadata/component-identifier.d.ts +0 -7
  67. package/core/metadata/component-identifier.d.ts.map +0 -1
  68. package/core/metadata/component-identifier.js +0 -9
  69. package/core/metadata/component-identifier.js.map +0 -1
  70. package/core/metadata/index.d.ts +0 -4
  71. package/core/metadata/index.d.ts.map +0 -1
  72. package/core/metadata/index.js +0 -4
  73. package/core/metadata/index.js.map +0 -1
  74. package/core/metadata/metadata-interface.d.ts +0 -10
  75. package/core/metadata/metadata-interface.d.ts.map +0 -1
  76. package/core/metadata/metadata-interface.js +0 -2
  77. package/core/metadata/metadata-interface.js.map +0 -1
  78. package/core/rules-engine/index.d.ts +0 -2
  79. package/core/rules-engine/index.d.ts.map +0 -1
  80. package/core/rules-engine/index.js +0 -2
  81. package/core/rules-engine/index.js.map +0 -1
  82. package/core/rules-engine/rules-engine-interfaces.d.ts +0 -24
  83. package/core/rules-engine/rules-engine-interfaces.d.ts.map +0 -1
  84. package/core/rules-engine/rules-engine-interfaces.js +0 -2
  85. package/core/rules-engine/rules-engine-interfaces.js.map +0 -1
  86. package/index.d.ts +0 -954
  87. package/index.d.ts.map +0 -1
  88. package/log/index.d.ts +0 -2
  89. package/log/index.d.ts.map +0 -1
  90. package/log/index.js +0 -2
  91. package/log/index.js.map +0 -1
  92. package/log/logger.d.ts +0 -36
  93. package/log/logger.d.ts.map +0 -1
  94. package/log/logger.js +0 -2
  95. package/log/logger.js.map +0 -1
  96. package/messages/common-message-interface.d.ts +0 -17
  97. package/messages/common-message-interface.d.ts.map +0 -1
  98. package/messages/common-message-interface.js +0 -2
  99. package/messages/common-message-interface.js.map +0 -1
  100. package/messages/index.d.ts +0 -4
  101. package/messages/index.d.ts.map +0 -1
  102. package/messages/index.js +0 -4
  103. package/messages/index.js.map +0 -1
  104. package/messages/message-helpers.d.ts +0 -24
  105. package/messages/message-helpers.d.ts.map +0 -1
  106. package/messages/message-helpers.js +0 -54
  107. package/messages/message-helpers.js.map +0 -1
  108. package/messages/message-interfaces.d.ts +0 -26
  109. package/messages/message-interfaces.d.ts.map +0 -1
  110. package/messages/message-interfaces.js +0 -5
  111. package/messages/message-interfaces.js.map +0 -1
  112. package/public_api.d.ts +0 -6
  113. package/public_api.d.ts.map +0 -1
  114. package/public_api.js +0 -6
  115. package/public_api.js.map +0 -1
  116. package/schematics/rule-factories/component/design-token.d.ts +0 -4
  117. package/schematics/rule-factories/component/design-token.d.ts.map +0 -1
  118. package/schematics/rule-factories/component/design-token.js +0 -10
  119. package/schematics/rule-factories/component/design-token.js.map +0 -1
  120. package/schematics/rule-factories/component/theming.d.ts +0 -4
  121. package/schematics/rule-factories/component/theming.d.ts.map +0 -1
  122. package/schematics/rule-factories/component/theming.js +0 -7
  123. package/schematics/rule-factories/component/theming.js.map +0 -1
  124. package/store/async/async-entity.adapter.d.ts +0 -62
  125. package/store/async/async-entity.adapter.d.ts.map +0 -1
  126. package/store/async/async-entity.adapter.js +0 -49
  127. package/store/async/async-entity.adapter.js.map +0 -1
  128. package/store/async/async.adapter.d.ts +0 -91
  129. package/store/async/async.adapter.d.ts.map +0 -1
  130. package/store/async/async.adapter.js +0 -94
  131. package/store/async/async.adapter.js.map +0 -1
  132. package/store/async/async.helpers.d.ts +0 -17
  133. package/store/async/async.helpers.d.ts.map +0 -1
  134. package/store/async/async.helpers.js +0 -25
  135. package/store/async/async.helpers.js.map +0 -1
  136. package/store/async/async.interfaces.d.ts +0 -91
  137. package/store/async/async.interfaces.d.ts.map +0 -1
  138. package/store/async/async.interfaces.js +0 -2
  139. package/store/async/async.interfaces.js.map +0 -1
  140. package/store/async/async.operators.d.ts +0 -22
  141. package/store/async/async.operators.d.ts.map +0 -1
  142. package/store/async/async.operators.js +0 -75
  143. package/store/async/async.operators.js.map +0 -1
  144. package/store/async/async.props.d.ts +0 -7
  145. package/store/async/async.props.d.ts.map +0 -1
  146. package/store/async/async.props.js +0 -10
  147. package/store/async/async.props.js.map +0 -1
  148. package/store/async/async.serializer.d.ts +0 -29
  149. package/store/async/async.serializer.d.ts.map +0 -1
  150. package/store/async/async.serializer.js +0 -34
  151. package/store/async/async.serializer.js.map +0 -1
  152. package/store/async/index.d.ts +0 -8
  153. package/store/async/index.d.ts.map +0 -1
  154. package/store/async/index.js +0 -8
  155. package/store/async/index.js.map +0 -1
  156. package/store/index.d.ts +0 -3
  157. package/store/index.d.ts.map +0 -1
  158. package/store/index.js +0 -3
  159. package/store/index.js.map +0 -1
  160. package/store/types.d.ts +0 -95
  161. package/store/types.d.ts.map +0 -1
  162. package/store/types.js +0 -11
  163. package/store/types.js.map +0 -1
  164. package/utils/debug/debug-helper.d.ts +0 -14
  165. package/utils/debug/debug-helper.d.ts.map +0 -1
  166. package/utils/debug/debug-helper.js +0 -19
  167. package/utils/debug/debug-helper.js.map +0 -1
  168. package/utils/deep-fill/deep-fill.d.ts +0 -37
  169. package/utils/deep-fill/deep-fill.d.ts.map +0 -1
  170. package/utils/deep-fill/deep-fill.js +0 -71
  171. package/utils/deep-fill/deep-fill.js.map +0 -1
  172. package/utils/index.d.ts +0 -4
  173. package/utils/index.d.ts.map +0 -1
  174. package/utils/index.js +0 -4
  175. package/utils/index.js.map +0 -1
  176. package/utils/rendering/rendering-helpers.d.ts +0 -10
  177. package/utils/rendering/rendering-helpers.d.ts.map +0 -1
  178. package/utils/rendering/rendering-helpers.js +0 -31
  179. package/utils/rendering/rendering-helpers.js.map +0 -1
@@ -1,94 +0,0 @@
1
- export const asyncStoreItemAdapter = {
2
- addRequest: (item, requestId) => {
3
- return {
4
- ...item,
5
- requestIds: [...item.requestIds, requestId],
6
- isFailure: item.requestIds.length === 0 ? false : item.isFailure,
7
- isPending: true
8
- };
9
- },
10
- failRequest: (item, requestId) => {
11
- const requestIds = requestId ? item.requestIds.filter((id) => id !== requestId) : item.requestIds;
12
- return {
13
- ...item,
14
- isFailure: true,
15
- isPending: requestIds.length > 0,
16
- requestIds
17
- };
18
- },
19
- resolveRequest: (item, requestId) => {
20
- const requestIds = requestId ? item.requestIds.filter((id) => id !== requestId) : item.requestIds;
21
- return {
22
- ...item,
23
- requestIds,
24
- isPending: requestIds.length > 0
25
- };
26
- },
27
- initialize: (entityItem) => {
28
- return {
29
- ...entityItem,
30
- requestIds: []
31
- };
32
- },
33
- extractAsyncStoreItem: (entityItem) => {
34
- return {
35
- requestIds: [...entityItem.requestIds],
36
- isFailure: entityItem.isFailure,
37
- isPending: entityItem.isPending
38
- };
39
- },
40
- clearAsyncStoreItem: (entityItem) => {
41
- const { isPending, isFailure, ...newResponse } = { ...entityItem, requestIds: [] };
42
- return newResponse;
43
- },
44
- merge: (...items) => {
45
- return items.reduce((mergedItem, item) => item
46
- ? {
47
- requestIds: [...mergedItem.requestIds, ...item.requestIds],
48
- isFailure: mergedItem.isFailure || item.isFailure,
49
- isPending: mergedItem.isPending || item.isPending
50
- }
51
- : mergedItem, asyncStoreItemAdapter.initialize({}));
52
- },
53
- entityStatusAddRequest: (status, subResource, requestId) => {
54
- const currentSubStatus = status[subResource] || asyncStoreItemAdapter.initialize({});
55
- return {
56
- ...status,
57
- [subResource]: asyncStoreItemAdapter.addRequest(currentSubStatus, requestId)
58
- };
59
- },
60
- entityStatusResolveRequest: (status, subResource, requestId) => {
61
- const currentSubStatus = status[subResource];
62
- return {
63
- ...status,
64
- [subResource]: currentSubStatus ? asyncStoreItemAdapter.resolveRequest(currentSubStatus, requestId) : { requestIds: [] }
65
- };
66
- },
67
- entityStatusFailRequest: (status, subResource, requestId) => {
68
- const currentSubStatus = status[subResource];
69
- return {
70
- ...status,
71
- [subResource]: currentSubStatus ? asyncStoreItemAdapter.failRequest(currentSubStatus, requestId) : { requestIds: [], isFailure: true }
72
- };
73
- },
74
- entityStatusResetFailure: (status, subResource) => {
75
- const currentSubStatus = status[subResource];
76
- return {
77
- ...status,
78
- [subResource]: currentSubStatus ? asyncStoreItemAdapter.resetFailureStatus(currentSubStatus) : { requestIds: [] }
79
- };
80
- },
81
- resetFailureStatus: (entityItem) => {
82
- return {
83
- ...entityItem,
84
- isFailure: false
85
- };
86
- },
87
- setLoadingStatus: (entityItem) => {
88
- return {
89
- ...entityItem,
90
- isPending: true
91
- };
92
- }
93
- };
94
- //# sourceMappingURL=async.adapter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"async.adapter.js","sourceRoot":"","sources":["../../../src/store/async/async.adapter.ts"],"names":[],"mappings":"AA2GA,MAAM,CAAC,MAAM,qBAAqB,GAA0B;IAC1D,UAAU,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE;QAC9B,OAAO;YACL,GAAG,IAAI;YACP,UAAU,EAAE,CAAC,GAAG,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC;YAC3C,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,C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AW,EAAE,SAAS,EAAE,EAAE;QAC1D,MAAM,gBAAgB,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;QAC7C,OAAO;YACL,GAAG,MAAM;YACT,CAAC,WAAW,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,qBAAqB,CAAC,WAAW,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,EAAiB,EAAE,SAAS,EAAE,IAAI,EAAE;SACtJ,CAAC;IACJ,CAAC;IAED,wBAAwB,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE;QAChD,MAAM,gBAAgB,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;QAC7C,OAAO;YACL,GAAG,MAAM;YACT,CAAC,WAAW,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,EAAiB,EAAE;SACjI,CAAC;IACJ,CAAC;IAED,kBAAkB,EAAE,CAAC,UAAU,EAAE,EAAE;QACjC,OAAO;YACL,GAAG,UAAU;YACb,SAAS,EAAE,KAAK;SACjB,CAAC;IACJ,CAAC;IAED,gBAAgB,EAAE,CAAC,UAAU,EAAE,EAAE;QAC/B,OAAO;YACL,GAAG,UAAU;YACb,SAAS,EAAE,IAAI;SAChB,CAAC;IACJ,CAAC;CACF,CAAC"}
@@ -1,17 +0,0 @@
1
- import { AsyncRequest, FromApiActionPayload } from './async.interfaces';
2
- /**
3
- * Determine if the action is an AsyncRequest action
4
- * @param action Redux Action
5
- */
6
- export declare function isCallAction<T = any>(action?: any): action is FromApiActionPayload<T>;
7
- /**
8
- * Determine if the action is an AsyncRequest action with a Request ID
9
- * @param action Redux Action
10
- */
11
- export declare function isIdentifiedCallAction<T = any>(action?: any): action is FromApiActionPayload<T> & AsyncRequest;
12
- /**
13
- * Determine if the given item implements the AsyncRequest interface
14
- * @param item
15
- */
16
- export declare function isAsyncRequest<T>(item: any): item is T & AsyncRequest;
17
- //# sourceMappingURL=async.helpers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"async.helpers.d.ts","sourceRoot":"","sources":["../../../src/store/async/async.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAE5B;;;GAGG;AACH,wBAAgB,YAAY,CAAC,CAAC,GAAG,GAAG,EAAE,MAAM,CAAC,EAAE,GAAG,GAAG,MAAM,IAAI,oBAAoB,CAAC,CAAC,CAAC,CAMrF;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,GAAG,GAAG,EAAE,MAAM,CAAC,EAAE,GAAG,GAAG,MAAM,IAAI,oBAAoB,CAAC,CAAC,CAAC,GAAG,YAAY,CAE9G;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,GAAG,IAAI,IAAI,CAAC,GAAG,YAAY,CAErE"}
@@ -1,25 +0,0 @@
1
- /**
2
- * Determine if the action is an AsyncRequest action
3
- * @param action Redux Action
4
- */
5
- export function isCallAction(action) {
6
- if (!action) {
7
- return false;
8
- }
9
- return !!action.call && action.call instanceof Promise;
10
- }
11
- /**
12
- * Determine if the action is an AsyncRequest action with a Request ID
13
- * @param action Redux Action
14
- */
15
- export function isIdentifiedCallAction(action) {
16
- return isCallAction(action) && typeof action.requestId !== 'undefined';
17
- }
18
- /**
19
- * Determine if the given item implements the AsyncRequest interface
20
- * @param item
21
- */
22
- export function isAsyncRequest(item) {
23
- return typeof item.requestId !== 'undefined';
24
- }
25
- //# sourceMappingURL=async.helpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"async.helpers.js","sourceRoot":"","sources":["../../../src/store/async/async.helpers.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAU,MAAY;IAChD,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,YAAY,OAAO,CAAC;AACzD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CAAU,MAAY;IAC1D,OAAO,YAAY,CAAC,MAAM,CAAC,IAAI,OAAO,MAAM,CAAC,SAAS,KAAK,WAAW,CAAC;AACzE,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAI,IAAS;IACzC,OAAO,OAAO,IAAI,CAAC,SAAS,KAAK,WAAW,CAAC;AAC/C,CAAC"}
@@ -1,91 +0,0 @@
1
- import { FailActionPayload, FailEntitiesActionPayload, SetActionPayload, SetEntitiesActionPayload, SetEntityActionPayload, UpdateEntitiesActionPayload, UpdateEntitiesActionPayloadWithId, UpdateEntityActionPayload, UpdateEntityActionPayloadWithId } from '../types';
2
- export type RequestId = string;
3
- /**
4
- * Interface representing an asynchronous request
5
- */
6
- export interface AsyncRequest {
7
- /** ID of the request */
8
- requestId: RequestId;
9
- }
10
- /**
11
- * Represents a store item that can be manipulated via asynchronous calls
12
- */
13
- export interface AsyncStoreItem {
14
- /**
15
- * IDs of the active asynchronous requests for this item.
16
- */
17
- requestIds: RequestId[];
18
- /**
19
- * Has a recent call failed.
20
- * This is reset back to false the next time a new async process is started and there are no active requests.
21
- */
22
- isFailure?: boolean;
23
- /**
24
- * Is an asynchronous process ongoing on that item
25
- */
26
- isPending?: boolean;
27
- }
28
- /**
29
- * Payload for actions relying on asynchronous requests
30
- */
31
- export interface FromApiActionPayload<T> extends Partial<AsyncRequest> {
32
- /** Promise call from API */
33
- call: Promise<T>;
34
- }
35
- /**
36
- * Unwraps the type of a FromApiActionPayload
37
- */
38
- export type ExtractFromApiActionPayloadType<T extends FromApiActionPayload<any>> = T['call'] extends Promise<infer U> ? U : never;
39
- /**
40
- * Payload for actions relying on asynchronous requests
41
- */
42
- export interface FromApiActionPayloadWithEntityId<T> extends FromApiActionPayload<T> {
43
- /** ID of the entity affected by the call */
44
- id?: string;
45
- }
46
- /** Add an optional request ID to the given object */
47
- export type WithRequestId<T> = T & Partial<AsyncRequest>;
48
- /** Payload to set entities actions from async */
49
- export interface SetAsyncStoreItemActionPayload<T> extends SetActionPayload<T>, Partial<AsyncRequest> {
50
- }
51
- /** Payload to update entities actions from async */
52
- export interface UpdateAsyncStoreItemEntitiesActionPayload<T extends object, K extends keyof T> extends UpdateEntitiesActionPayload<T, K>, Partial<AsyncRequest> {
53
- }
54
- /** Payload to update entities actions from async with a field ID */
55
- export interface UpdateAsyncStoreItemEntitiesActionPayloadWithId<T extends {
56
- id: string | number;
57
- }> extends UpdateEntitiesActionPayloadWithId<T>, Partial<AsyncRequest> {
58
- }
59
- /** Payload to update entity actions from async */
60
- export interface UpdateAsyncStoreItemEntityActionPayload<T extends object, K extends keyof T> extends UpdateEntityActionPayload<T, K>, Partial<AsyncRequest> {
61
- }
62
- /** Payload to update entity actions from async with a field ID */
63
- export interface UpdateAsyncStoreItemEntityActionPayloadWithId<T extends {
64
- id: string | number;
65
- }> extends UpdateEntityActionPayloadWithId<T>, Partial<AsyncRequest> {
66
- }
67
- /** Payload to set/upsert entities actions from async */
68
- export interface SetAsyncStoreItemEntitiesActionPayload<T extends object> extends SetEntitiesActionPayload<T>, Partial<AsyncRequest> {
69
- }
70
- /** Payload to set/upsert entity actions from async */
71
- export interface SetAsyncStoreItemEntityActionPayload<T extends object> extends SetEntityActionPayload<T>, Partial<AsyncRequest> {
72
- }
73
- /** Payload to fail entity actions from async */
74
- export interface FailAsyncStoreItemEntityActionPayload<T extends object> extends FailActionPayload<T>, Partial<AsyncRequest> {
75
- }
76
- /** Payload to fail entities actions from async */
77
- export interface FailAsyncStoreItemEntitiesActionPayload<T extends object> extends FailEntitiesActionPayload<T>, Partial<AsyncRequest> {
78
- }
79
- /** Status for all the elements inside a cart */
80
- export type EntityStatus<T, U extends keyof T = never> = {
81
- [P in keyof Omit<T, 'id' | U>]?: AsyncStoreItem;
82
- };
83
- /**
84
- * Extends an Entity model with a status property that holds async information for each of its sub-resources
85
- */
86
- export type EntityWithStatus<T> = T & {
87
- status: EntityStatus<T>;
88
- };
89
- /** Modifies the given type that extends AsyncStoreItem to remove those properties */
90
- export type EntityWithoutAsyncStoreItem<T extends AsyncStoreItem> = Omit<T, keyof AsyncStoreItem>;
91
- //# sourceMappingURL=async.interfaces.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"async.interfaces.d.ts","sourceRoot":"","sources":["../../../src/store/async/async.interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,wBAAwB,EACxB,sBAAsB,EACtB,2BAA2B,EAC3B,iCAAiC,EACjC,yBAAyB,EACzB,+BAA+B,EAChC,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,wBAAwB;IACxB,SAAS,EAAE,SAAS,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,UAAU,EAAE,SAAS,EAAE,CAAC;IAExB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB,CAAC,CAAC,CAAE,SAAQ,OAAO,CAAC,YAAY,CAAC;IACpE,4BAA4B;IAC5B,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,MAAM,+BAA+B,CAAC,CAAC,SAAS,oBAAoB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAElI;;GAEG;AACH,MAAM,WAAW,gCAAgC,CA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MAAM,WAAW,oCAAoC,CAAC,CAAC,SAAS,MAAM,CAAE,SAAQ,sBAAsB,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC;CAAG;AAEnI,gDAAgD;AAChD,MAAM,WAAW,qCAAqC,CAAC,CAAC,SAAS,MAAM,CAAE,SAAQ,iBAAiB,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC;CAAG;AAE/H,kDAAkD;AAClD,MAAM,WAAW,uCAAuC,CAAC,CAAC,SAAS,MAAM,CAAE,SAAQ,yBAAyB,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC;CAAG;AAEzI,gDAAgD;AAChD,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,GAAG,KAAK,IAAI;KACtD,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,cAAc;CAChD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,CAAA;CAAE,CAAC;AAElE,qFAAqF;AACrF,MAAM,MAAM,2BAA2B,CAAC,CAAC,SAAS,cAAc,IAAI,IAAI,CAAC,CAAC,EAAE,MAAM,cAAc,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=async.interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"async.interfaces.js","sourceRoot":"","sources":["../../../src/store/async/async.interfaces.ts"],"names":[],"mappings":""}
@@ -1,22 +0,0 @@
1
- import { Action } from '@ngrx/store';
2
- import { Observable, OperatorFunction } from 'rxjs';
3
- import { AsyncRequest, ExtractFromApiActionPayloadType, FromApiActionPayload } from './async.interfaces';
4
- /**
5
- * Custom operator to use instead of SwitchMap with effects based on FromApi actions.
6
- * It makes sure to emit an action when the inner subscription is unsubscribed in order to keep the store up-to-date with pending information.
7
- * @param successHandler function that returns the action to emit in case the FromApi call is a success
8
- * @param errorHandler function that returns the action to emit in case the FromApi call fails
9
- * @param cancelRequestActionFactory function that returns the action to emit in case the FromApi action is 'cancelled' because a new action was received by the switchMap
10
- */
11
- export declare function fromApiEffectSwitchMap<T extends FromApiActionPayload<any>, S extends ExtractFromApiActionPayloadType<T>, U extends Action, V extends Action, W extends Action>(successHandler: (result: S, action: T) => U | Observable<U> | Promise<U>, errorHandler?: (error: any, action: T) => Observable<V>, cancelRequestActionFactory?: (props: AsyncRequest, action: T) => W): OperatorFunction<T, U | V | W>;
12
- /**
13
- * Same as {@link fromApiEffectSwitchMap}, instead one inner subscription is kept by id.
14
- * @param successHandler
15
- * @param errorHandler
16
- * @param cancelRequestActionFactory
17
- * @param cleanUpTimer
18
- */
19
- export declare function fromApiEffectSwitchMapById<T extends FromApiActionPayload<any> & {
20
- id: string;
21
- }, S extends ExtractFromApiActionPayloadType<T>, U extends Action, V extends Action, W extends Action>(successHandler: (result: S, action: T) => U | Observable<U> | Promise<U>, errorHandler?: (error: any, action: T) => Observable<V>, cancelRequestActionFactory?: (props: AsyncRequest, action: T) => W, cleanUpTimer?: number): OperatorFunction<T, U | V | W>;
22
- //# sourceMappingURL=async.operators.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"async.operators.d.ts","sourceRoot":"","sources":["../../../src/store/async/async.operators.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACP,MAAM,aAAa,CAAC;AACrB,OAAO,EAOL,UAAU,EAEV,gBAAgB,EAEjB,MAAM,MAAM,CAAC;AAcd,OAAO,EACL,YAAY,EACZ,+BAA+B,EAC/B,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAQ5B;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,oBAAoB,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,+BAA+B,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS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finalize, pairwise, startWith, switchMap, tap, } from 'rxjs/operators';
3
- import { isIdentifiedCallAction, } from './async.helpers';
4
- /**
5
- * Determine if the given parameter is a Promise
6
- * @param object
7
- */
8
- const isPromise = (object) => object && typeof object === 'object' && typeof object.then !== 'undefined';
9
- /**
10
- * Custom operator to use instead of SwitchMap with effects based on FromApi actions.
11
- * It makes sure to emit an action when the inner subscription is unsubscribed in order to keep the store up-to-date with pending information.
12
- * @param successHandler function that returns the action to emit in case the FromApi call is a success
13
- * @param errorHandler function that returns the action to emit in case the FromApi call fails
14
- * @param cancelRequestActionFactory function that returns the action to emit in case the FromApi action is 'cancelled' because a new action was received by the switchMap
15
- */
16
- export function fromApiEffectSwitchMap(successHandler, errorHandler, cancelRequestActionFactory) {
17
- const pendingRequestIdsContext = {};
18
- return (source$) => source$.pipe(tap((action) => {
19
- if (isIdentifiedCallAction(action)) {
20
- pendingRequestIdsContext[action.requestId] = true;
21
- }
22
- }), startWith(undefined), pairwise(), switchMap(([previousAction, action]) => {
23
- if (!action) {
24
- return EMPTY;
25
- }
26
- const isPreviousActionStillRunning = isIdentifiedCallAction(previousAction) && pendingRequestIdsContext[previousAction.requestId];
27
- const cleanStack = () => {
28
- if (isIdentifiedCallAction(action)) {
29
- delete pendingRequestIdsContext[action.requestId];
30
- }
31
- };
32
- return from(action.call).pipe(tap(cleanStack), switchMap((result) => {
33
- const success = successHandler(result, action);
34
- return isObservable(success) ? success : (isPromise(success) ? success : of(success));
35
- }), catchError((error) => {
36
- cleanStack();
37
- return errorHandler?.(error, action) || EMPTY;
38
- }), isPreviousActionStillRunning && cancelRequestActionFactory ? startWith(cancelRequestActionFactory({ requestId: previousAction.requestId }, action)) : identity);
39
- }));
40
- }
41
- /**
42
- * Same as {@link fromApiEffectSwitchMap}, instead one inner subscription is kept by id.
43
- * @param successHandler
44
- * @param errorHandler
45
- * @param cancelRequestActionFactory
46
- * @param cleanUpTimer
47
- */
48
- export function fromApiEffectSwitchMapById(successHandler, errorHandler, cancelRequestActionFactory, cleanUpTimer) {
49
- const innerSourcesById = {};
50
- return (source$) => {
51
- return source$.pipe(filter((action) => {
52
- if (!isIdentifiedCallAction(action) || !action.id) {
53
- return false;
54
- }
55
- if (isIdentifiedCallAction(action) && innerSourcesById[action.id]) {
56
- innerSourcesById[action.id][0].next(action);
57
- return false;
58
- }
59
- return true;
60
- }), switchMap((action) => {
61
- const newIdSubject = new BehaviorSubject(action);
62
- const newId$ = newIdSubject.pipe(fromApiEffectSwitchMap(successHandler, errorHandler, cancelRequestActionFactory));
63
- innerSourcesById[action.id] = [newIdSubject, newId$];
64
- if (cleanUpTimer !== undefined) {
65
- newIdSubject.pipe(switchMap((myAction) => from(myAction.call).pipe(delay(cleanUpTimer), finalize(() => {
66
- delete innerSourcesById[myAction.id];
67
- newIdSubject.complete();
68
- })))).subscribe();
69
- }
70
- const streams = Object.values(innerSourcesById).map(([_, obs]) => obs);
71
- return merge(...streams);
72
- }));
73
- };
74
- }
75
- //# sourceMappingURL=async.operators.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"async.operators.js","sourceRoot":"","sources":["../../../src/store/async/async.operators.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,eAAe,EACf,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,KAAK,EAEL,EAAE,GAGH,MAAM,MAAM,CAAC;AACd,OAAO,EACL,UAAU,EACV,KAAK,EACL,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAS,EACT,GAAG,GACJ,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,sBAAsB,GACvB,MAAM,iBAAiB,CAAC;AAOzB;;;GAGG;AACH,MAAM,SAAS,GAAG,CAAI,MAAsB,EAAwB,EAAE,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,OAAQ,MAAc,CAAC,IAAI,KAAK,WAAW,CAAC;AAE3J;;;;;;GAMG;AACH,MAAM,UAAU,sBAAsB,CAClC,cAAwE,EACx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E,MAAM,CAAC,CAAC;YACrD,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;gBAC/B,YAAY,CAAC,IAAI,CACf,SAAS,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,IAAI,CAC9C,KAAK,CAAC,YAAY,CAAC,EACnB,QAAQ,CAAC,GAAG,EAAE;oBACZ,OAAO,gBAAgB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;oBACrC,YAAY,CAAC,QAAQ,EAAE,CAAC;gBAC1B,CAAC,CAAC,CACH,CAAC,CACH,CAAC,SAAS,EAAE,CAAC;YAChB,CAAC;YACD,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC;YACvE,OAAO,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC;QAC3B,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
@@ -1,7 +0,0 @@
1
- import { AsyncRequest } from './async.interfaces';
2
- /**
3
- * Returns a creator that makes sure that requestId is defined in the action's properties by generating one
4
- * if needed.
5
- */
6
- export declare const asyncProps: <P extends object>() => (props: P) => P & AsyncRequest;
7
- //# sourceMappingURL=async.props.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"async.props.d.ts","sourceRoot":"","sources":["../../../src/store/async/async.props.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,YAAY,EACb,MAAM,oBAAoB,CAAC;AAE5B;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,MAAM,OAAK,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,YAEjE,CAAC"}
@@ -1,10 +0,0 @@
1
- import { v4, } from 'uuid';
2
- import { isAsyncRequest, } from './async.helpers';
3
- /**
4
- * Returns a creator that makes sure that requestId is defined in the action's properties by generating one
5
- * if needed.
6
- */
7
- export const asyncProps = () => {
8
- return (props) => isAsyncRequest(props) ? props : { ...props, requestId: v4() };
9
- };
10
- //# sourceMappingURL=async.props.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"async.props.js","sourceRoot":"","sources":["../../../src/store/async/async.props.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,GACH,MAAM,MAAM,CAAC;AACd,OAAO,EACL,cAAc,GACf,MAAM,iBAAiB,CAAC;AAKzB;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,GAAqD,EAAE;IAC/E,OAAO,CAAC,KAAQ,EAAE,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,CAAC;AACrF,CAAC,CAAC"}
@@ -1,29 +0,0 @@
1
- import type { EntityState } from '@ngrx/entity';
2
- import { AsyncStoreItem, EntityStatus } from './async.interfaces';
3
- /**
4
- * Serializer for asynchronous store.
5
- * @param state State of an asynchronous store to serialize
6
- * @returns a plain json object to pass to json.stringify
7
- */
8
- export declare function asyncSerializer<T extends AsyncStoreItem>(state: T): T;
9
- /**
10
- * Serializer for asynchronous entity store.
11
- * @param state State of an asynchronous entity store to serialize
12
- * @returns a plain json object to pass to json.stringify
13
- */
14
- export declare function asyncEntitySerializer<T extends AsyncStoreItem & EntityState<AsyncStoreItem>>(state: T): T & {
15
- entities: import("@ngrx/entity").Dictionary<AsyncStoreItem>;
16
- };
17
- /**
18
- * Serializer for asynchronous entity store with status.
19
- * @param state State of an asynchronous entity store with status to serialize
20
- * @returns a plain json object to pass to json.stringify
21
- */
22
- export declare function asyncEntityWithStatusSerializer<T extends AsyncStoreItem & EntityState<AsyncStoreItem & {
23
- status: EntityStatus<T['entities']['status']>;
24
- }>>(state: T): T & {
25
- entities: import("@ngrx/entity").Dictionary<AsyncStoreItem & {
26
- status: EntityStatus<T["entities"]["status"]>;
27
- }>;
28
- };
29
- //# sourceMappingURL=async.serializer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"async.serializer.d.ts","sourceRoot":"","sources":["../../../src/store/async/async.serializer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACZ,MAAM,cAAc,CAAC;AAItB,OAAO,EACL,cAAc,EACd,YAAY,EACb,MAAM,oBAAoB,CAAC;AAE5B;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,cAAc,EAAE,KAAK,EAAE,CAAC,KAEjE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,cAAc,GAAG,WAAW,CAAC,cAAc,CAAC,EAAE,KAAK,EAAE,CAAC;;EAOrG;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,CAAC,CAAC,SAAS,cAAc,GAAG,WAAW,CAAC,cAAc,GAAG;IAAE,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAA;CAAE,CAAC,EAAE,KAAK,EAAE,CAAC;;gBAAlD,YAAY,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAC;;EAOtJ"}
@@ -1,34 +0,0 @@
1
- import { asyncStoreItemAdapter, } from './async.adapter';
2
- /**
3
- * Serializer for asynchronous store.
4
- * @param state State of an asynchronous store to serialize
5
- * @returns a plain json object to pass to json.stringify
6
- */
7
- export function asyncSerializer(state) {
8
- return asyncStoreItemAdapter.clearAsyncStoreItem(state);
9
- }
10
- /**
11
- * Serializer for asynchronous entity store.
12
- * @param state State of an asynchronous entity store to serialize
13
- * @returns a plain json object to pass to json.stringify
14
- */
15
- export function asyncEntitySerializer(state) {
16
- const entities = state.ids.reduce((entitiesAcc, entityId) => {
17
- entitiesAcc[entityId] = asyncStoreItemAdapter.clearAsyncStoreItem(state.entities[entityId]);
18
- return entitiesAcc;
19
- }, {});
20
- return { ...asyncStoreItemAdapter.clearAsyncStoreItem(state), entities };
21
- }
22
- /**
23
- * Serializer for asynchronous entity store with status.
24
- * @param state State of an asynchronous entity store with status to serialize
25
- * @returns a plain json object to pass to json.stringify
26
- */
27
- export function asyncEntityWithStatusSerializer(state) {
28
- const entities = state.ids.reduce((entitiesAcc, entityId) => {
29
- entitiesAcc[entityId] = { ...asyncStoreItemAdapter.clearAsyncStoreItem(state.entities[entityId]), status: {} };
30
- return entitiesAcc;
31
- }, {});
32
- return { ...asyncStoreItemAdapter.clearAsyncStoreItem(state), entities };
33
- }
34
- //# sourceMappingURL=async.serializer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"async.serializer.js","sourceRoot":"","sources":["../../../src/store/async/async.serializer.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AAMzB;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAA2B,KAAQ;IAChE,OAAO,qBAAqB,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CAAyD,KAAQ;IACpG,MAAM,QAAQ,GAAI,KAAK,CAAC,GAAgB,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,QAAQ,EAAE,EAAE;QACxE,WAAW,CAAC,QAAQ,CAAC,GAAG,qBAAqB,CAAC,mBAAmB,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAE,CAAC,CAAC;QAC7F,OAAO,WAAW,CAAC;IACrB,CAAC,EAAE,EAA2B,CAAC,CAAC;IAEhC,OAAO,EAAE,GAAG,qBAAqB,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;AAC3E,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,+BAA+B,CAA6G,KAAQ;IAClK,MAAM,QAAQ,GAAI,KAAK,CAAC,GAAgB,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,QAAQ,EAAE,EAAE;QACxE,WAAW,CAAC,QAAQ,CAAC,GAAG,EAAE,GAAG,qBAAqB,CAAC,mBAAmB,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;QAChH,OAAO,WAAW,CAAC;IACrB,CAAC,EAAE,EAA2B,CAAC,CAAC;IAEhC,OAAO,EAAE,GAAG,qBAAqB,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;AAC3E,CAAC"}
@@ -1,8 +0,0 @@
1
- export * from './async-entity.adapter';
2
- export * from './async.adapter';
3
- export * from './async.helpers';
4
- export * from './async.interfaces';
5
- export * from './async.operators';
6
- export * from './async.props';
7
- export * from './async.serializer';
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/store/async/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC"}
@@ -1,8 +0,0 @@
1
- export * from './async-entity.adapter';
2
- export * from './async.adapter';
3
- export * from './async.helpers';
4
- export * from './async.interfaces';
5
- export * from './async.operators';
6
- export * from './async.props';
7
- export * from './async.serializer';
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/store/async/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC"}
package/store/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './async/index';
2
- export * from './types';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC"}
package/store/index.js DELETED
@@ -1,3 +0,0 @@
1
- export * from './async/index';
2
- export * from './types';
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC"}
package/store/types.d.ts DELETED
@@ -1,95 +0,0 @@
1
- /**
2
- * Object that define how to serialize a specific state
3
- */
4
- export interface Serializer<T> {
5
- serialize?: (obj: T) => any;
6
- deserialize?: (data?: any) => T;
7
- reviver?: (key: string, value: any) => any;
8
- replacer?: (key: string, value: any) => any;
9
- initialState?: T;
10
- }
11
- export declare class StateSerializer<T> implements Serializer<T> {
12
- serialize?: (obj: T) => any;
13
- deserialize?: (data?: any) => T;
14
- replacer?: (key: string, value: any) => any;
15
- initialState?: T;
16
- constructor(serializer: Serializer<T>);
17
- reviver: (_: string, value: any) => any;
18
- }
19
- export interface LocalStateModel {
20
- /**
21
- * Temporary ID of the model in the dictionary
22
- */
23
- tid: string;
24
- }
25
- /**
26
- * Adds an `id` to the given type
27
- */
28
- export type Idfy<T> = T & {
29
- id: string | number;
30
- };
31
- /**
32
- * Payload to update actions
33
- */
34
- export interface UpdateActionPayload<T> {
35
- stateDetails: Partial<T>;
36
- }
37
- /**
38
- * Payload to set actions
39
- */
40
- export interface SetActionPayload<T> {
41
- stateDetails: T;
42
- }
43
- /**
44
- * Payload to set state actions
45
- */
46
- export interface SetStateActionPayload<T> {
47
- state: T;
48
- }
49
- /**
50
- * Payload to fail actions
51
- */
52
- export interface FailActionPayload<T> {
53
- error?: T;
54
- }
55
- export type Keep<T, K extends keyof T> = Partial<T> & Pick<T, K>;
56
- /** Payload to update entities actions */
57
- export interface UpdateEntitiesActionPayload<T, K extends keyof T> {
58
- entities: Keep<T, K>[];
59
- }
60
- /** Payload to update entities actions with a field ID */
61
- export interface UpdateEntitiesActionPayloadWithId<T extends {
62
- id: string | number;
63
- }> {
64
- entities: Keep<T, 'id'>[];
65
- }
66
- /** Payload to update entities actions */
67
- export interface UpdateEntityActionPayload<T, K extends keyof T> {
68
- entity: Keep<T, K>;
69
- }
70
- /** Payload to update entities actions with a field ID */
71
- export interface UpdateEntityActionPayloadWithId<T extends {
72
- id: string | number;
73
- }> {
74
- entity: Keep<T, 'id'>;
75
- }
76
- /** Payload to set entities and upsert entities actions */
77
- export interface SetEntitiesActionPayload<T> {
78
- entities: T[];
79
- }
80
- /** Payload to set entity and upsert entity actions */
81
- export interface SetEntityActionPayload<T> {
82
- entity: T;
83
- }
84
- /** Payload to fail entities actions */
85
- export interface FailEntitiesActionPayload<T> extends FailActionPayload<T> {
86
- ids?: (string | number)[];
87
- }
88
- /**
89
- * Payload to clear the store in case of failure
90
- */
91
- export interface ClearOnFailurePayload {
92
- /** Clear store on failure */
93
- clearOnFailure?: boolean;
94
- }
95
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/store/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,GAAG,CAAC;IAC5B,WAAW,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC;IAC3C,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE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AAyC;AACzC,MAAM,WAAW,2BAA2B,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC;IAC/D,QAAQ,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;CACxB;AAED,yDAAyD;AACzD,MAAM,WAAW,iCAAiC,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE;IAClF,QAAQ,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC;CAC3B;AAED,yCAAyC;AACzC,MAAM,WAAW,yBAAyB,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC;IAC7D,MAAM,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CACpB;AAED,yDAAyD;AACzD,MAAM,WAAW,+BAA+B,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE;IAChF,MAAM,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;CACvB;AAED,0DAA0D;AAC1D,MAAM,WAAW,wBAAwB,CAAC,CAAC;IACzC,QAAQ,EAAE,CAAC,EAAE,CAAC;CACf;AAED,sDAAsD;AACtD,MAAM,WAAW,sBAAsB,CAAC,CAAC;IACvC,MAAM,EAAE,CAAC,CAAC;CACX;AAED,uCAAuC;AACvC,MAAM,WAAW,yBAAyB,CAAC,CAAC,CAAE,SAAQ,iBAAiB,CAAC,CAAC,CAAC;IACxE,GAAG,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,6BAA6B;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B"}
package/store/types.js DELETED
@@ -1,11 +0,0 @@
1
- export class StateSerializer {
2
- constructor(serializer) {
3
- this.reviver = (_, value) => value;
4
- this.serialize = serializer.serialize || this.serialize;
5
- this.deserialize = serializer.deserialize || this.deserialize;
6
- this.reviver = serializer.reviver || this.reviver;
7
- this.replacer = serializer.replacer || this.replacer;
8
- this.initialState = serializer.initialState || this.initialState;
9
- }
10
- }
11
- //# sourceMappingURL=types.js.map