entropic-bond 1.50.0 → 1.50.1

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 (111) hide show
  1. package/lib/auth/auth-mock.d.ts +22 -0
  2. package/lib/auth/auth-mock.spec.d.ts +1 -0
  3. package/lib/auth/auth.d.ts +131 -0
  4. package/lib/auth/user-auth-types.d.ts +19 -0
  5. package/lib/cloud-functions/cloud-functions-mock.d.ts +11 -0
  6. package/lib/cloud-functions/cloud-functions-mock.spec.d.ts +1 -0
  7. package/lib/cloud-functions/cloud-functions.d.ts +19 -0
  8. package/lib/cloud-storage/cloud-storage.d.ts +24 -0
  9. package/lib/cloud-storage/cloud-storage.spec.d.ts +1 -0
  10. package/lib/cloud-storage/mock-cloud-storage.d.ts +20 -0
  11. package/lib/cloud-storage/stored-file.d.ts +39 -0
  12. package/lib/entropic-bond.js +1667 -0
  13. package/lib/entropic-bond.umd.cjs +7 -0
  14. package/lib/index.d.ts +19 -0
  15. package/lib/observable/observable.d.ts +52 -0
  16. package/lib/observable/observable.spec.d.ts +1 -0
  17. package/lib/persistent/entropic-component.d.ts +76 -0
  18. package/lib/persistent/entropic-component.spec.d.ts +1 -0
  19. package/lib/persistent/persistent.d.ts +281 -0
  20. package/lib/persistent/persistent.spec.d.ts +67 -0
  21. package/lib/server-auth/server-auth-mock.d.ts +12 -0
  22. package/lib/server-auth/server-auth-mock.spec.d.ts +1 -0
  23. package/lib/server-auth/server-auth.d.ts +24 -0
  24. package/lib/store/data-source.d.ts +137 -0
  25. package/lib/store/json-data-source.d.ts +68 -0
  26. package/lib/store/json-data-source.spec.d.ts +1 -0
  27. package/lib/store/mocks/test-user.d.ts +49 -0
  28. package/lib/store/model.d.ts +238 -0
  29. package/lib/store/model.spec.d.ts +1 -0
  30. package/lib/store/store.d.ts +62 -0
  31. package/lib/store/store.spec.d.ts +1 -0
  32. package/lib/types/utility-types.d.ts +45 -0
  33. package/lib/types/utility-types.spec.d.ts +1 -0
  34. package/lib/utils/test-utils/test-person.d.ts +33 -0
  35. package/{src/utils/utils.ts → lib/utils/utils.d.ts} +10 -34
  36. package/lib/utils/utils.spec.d.ts +1 -0
  37. package/package.json +4 -1
  38. package/.github/workflows/release.yml +0 -26
  39. package/CHANGELOG.md +0 -1151
  40. package/docs/.nojekyll +0 -1
  41. package/docs/README.md +0 -94
  42. package/docs/classes/Auth.md +0 -391
  43. package/docs/classes/AuthMock.md +0 -278
  44. package/docs/classes/AuthService.md +0 -188
  45. package/docs/classes/CloudFunctions.md +0 -123
  46. package/docs/classes/CloudFunctionsMock.md +0 -97
  47. package/docs/classes/CloudStorage.md +0 -215
  48. package/docs/classes/DataSource.md +0 -248
  49. package/docs/classes/EntropicComponent.md +0 -666
  50. package/docs/classes/JsonDataSource.md +0 -328
  51. package/docs/classes/MockCloudStorage.md +0 -279
  52. package/docs/classes/Model.md +0 -274
  53. package/docs/classes/Observable.md +0 -120
  54. package/docs/classes/Persistent.md +0 -420
  55. package/docs/classes/ServerAuth.md +0 -211
  56. package/docs/classes/ServerAuthMock.md +0 -176
  57. package/docs/classes/ServerAuthService.md +0 -130
  58. package/docs/classes/Store.md +0 -218
  59. package/docs/classes/StoredFile.md +0 -636
  60. package/docs/enums/StoredFileEvent.md +0 -41
  61. package/docs/interfaces/AuthError.md +0 -30
  62. package/docs/interfaces/CloudFunctionsService.md +0 -69
  63. package/docs/interfaces/Collection.md +0 -13
  64. package/docs/interfaces/CustomCredentials.md +0 -7
  65. package/docs/interfaces/DocumentReference.md +0 -49
  66. package/docs/interfaces/JsonRawData.md +0 -7
  67. package/docs/interfaces/SignData.md +0 -63
  68. package/docs/interfaces/StoreParams.md +0 -52
  69. package/docs/interfaces/StoredFileChange.md +0 -41
  70. package/docs/interfaces/UploadControl.md +0 -90
  71. package/docs/interfaces/UserCredentials.md +0 -113
  72. package/docs/interfaces/Values.md +0 -17
  73. package/docs/modules.md +0 -1273
  74. package/src/auth/auth-mock.spec.ts +0 -168
  75. package/src/auth/auth-mock.ts +0 -129
  76. package/src/auth/auth.ts +0 -185
  77. package/src/auth/user-auth-types.ts +0 -21
  78. package/src/cloud-functions/cloud-functions-mock.spec.ts +0 -136
  79. package/src/cloud-functions/cloud-functions-mock.ts +0 -23
  80. package/src/cloud-functions/cloud-functions.ts +0 -83
  81. package/src/cloud-storage/cloud-storage.spec.ts +0 -207
  82. package/src/cloud-storage/cloud-storage.ts +0 -60
  83. package/src/cloud-storage/mock-cloud-storage.ts +0 -72
  84. package/src/cloud-storage/stored-file.ts +0 -102
  85. package/src/index.ts +0 -19
  86. package/src/observable/observable.spec.ts +0 -105
  87. package/src/observable/observable.ts +0 -67
  88. package/src/persistent/entropic-component.spec.ts +0 -143
  89. package/src/persistent/entropic-component.ts +0 -135
  90. package/src/persistent/persistent.spec.ts +0 -828
  91. package/src/persistent/persistent.ts +0 -650
  92. package/src/server-auth/server-auth-mock.spec.ts +0 -53
  93. package/src/server-auth/server-auth-mock.ts +0 -45
  94. package/src/server-auth/server-auth.ts +0 -49
  95. package/src/store/data-source.ts +0 -186
  96. package/src/store/json-data-source.spec.ts +0 -100
  97. package/src/store/json-data-source.ts +0 -256
  98. package/src/store/mocks/mock-data.json +0 -155
  99. package/src/store/mocks/test-user.ts +0 -122
  100. package/src/store/model.spec.ts +0 -659
  101. package/src/store/model.ts +0 -462
  102. package/src/store/store.spec.ts +0 -30
  103. package/src/store/store.ts +0 -113
  104. package/src/types/utility-types.spec.ts +0 -117
  105. package/src/types/utility-types.ts +0 -116
  106. package/src/utils/test-utils/test-person.ts +0 -44
  107. package/src/utils/utils.spec.ts +0 -95
  108. package/tsconfig-build.json +0 -7
  109. package/tsconfig-cjs.json +0 -9
  110. package/tsconfig.json +0 -33
  111. package/vite.config.ts +0 -22
@@ -1,69 +0,0 @@
1
- [entropic-bond](../README.md) / [Exports](../modules.md) / CloudFunctionsService
2
-
3
- # Interface: CloudFunctionsService
4
-
5
- ## Implemented by
6
-
7
- - [`CloudFunctionsMock`](../classes/CloudFunctionsMock.md)
8
-
9
- ## Table of contents
10
-
11
- ### Methods
12
-
13
- - [callFunction](CloudFunctionsService.md#callfunction)
14
- - [retrieveFunction](CloudFunctionsService.md#retrievefunction)
15
-
16
- ## Methods
17
-
18
- ### callFunction
19
-
20
- ▸ **callFunction**<`P`, `R`\>(`func`, `params`): `Promise`<`R`\>
21
-
22
- #### Type parameters
23
-
24
- | Name |
25
- | :------ |
26
- | `P` |
27
- | `R` |
28
-
29
- #### Parameters
30
-
31
- | Name | Type |
32
- | :------ | :------ |
33
- | `func` | [`CloudFunction`](../modules.md#cloudfunction)<`P`, `R`\> |
34
- | `params` | `P` |
35
-
36
- #### Returns
37
-
38
- `Promise`<`R`\>
39
-
40
- #### Defined in
41
-
42
- [cloud-functions/cloud-functions.ts:8](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/cloud-functions/cloud-functions.ts#L8)
43
-
44
- ___
45
-
46
- ### retrieveFunction
47
-
48
- ▸ **retrieveFunction**<`P`, `R`\>(`cloudFunction`): [`CloudFunction`](../modules.md#cloudfunction)<`P`, `R`\>
49
-
50
- #### Type parameters
51
-
52
- | Name |
53
- | :------ |
54
- | `P` |
55
- | `R` |
56
-
57
- #### Parameters
58
-
59
- | Name | Type |
60
- | :------ | :------ |
61
- | `cloudFunction` | `string` |
62
-
63
- #### Returns
64
-
65
- [`CloudFunction`](../modules.md#cloudfunction)<`P`, `R`\>
66
-
67
- #### Defined in
68
-
69
- [cloud-functions/cloud-functions.ts:7](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/cloud-functions/cloud-functions.ts#L7)
@@ -1,13 +0,0 @@
1
- [entropic-bond](../README.md) / [Exports](../modules.md) / Collection
2
-
3
- # Interface: Collection<T\>
4
-
5
- ## Type parameters
6
-
7
- | Name |
8
- | :------ |
9
- | `T` |
10
-
11
- ## Indexable
12
-
13
- ▪ [key: `string` \| `symbol`]: `T`
@@ -1,7 +0,0 @@
1
- [entropic-bond](../README.md) / [Exports](../modules.md) / CustomCredentials
2
-
3
- # Interface: CustomCredentials
4
-
5
- ## Indexable
6
-
7
- ▪ [key: `string`]: `unknown`
@@ -1,49 +0,0 @@
1
- [entropic-bond](../README.md) / [Exports](../modules.md) / DocumentReference
2
-
3
- # Interface: DocumentReference
4
-
5
- Stores information about a reference in another collection.
6
-
7
- ## Table of contents
8
-
9
- ### Properties
10
-
11
- - [\_\_className](DocumentReference.md#__classname)
12
- - [\_\_documentReference](DocumentReference.md#__documentreference)
13
- - [id](DocumentReference.md#id)
14
-
15
- ## Properties
16
-
17
- ### \_\_className
18
-
19
- • **\_\_className**: `string`
20
-
21
- #### Defined in
22
-
23
- [persistent/persistent.ts:45](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/persistent/persistent.ts#L45)
24
-
25
- ___
26
-
27
- ### \_\_documentReference
28
-
29
- • **\_\_documentReference**: `Object`
30
-
31
- #### Type declaration
32
-
33
- | Name | Type |
34
- | :------ | :------ |
35
- | `storedInCollection` | `string` |
36
-
37
- #### Defined in
38
-
39
- [persistent/persistent.ts:46](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/persistent/persistent.ts#L46)
40
-
41
- ___
42
-
43
- ### id
44
-
45
- • **id**: `string`
46
-
47
- #### Defined in
48
-
49
- [persistent/persistent.ts:44](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/persistent/persistent.ts#L44)
@@ -1,7 +0,0 @@
1
- [entropic-bond](../README.md) / [Exports](../modules.md) / JsonRawData
2
-
3
- # Interface: JsonRawData
4
-
5
- ## Indexable
6
-
7
- ▪ [collection: `string`]: { `[documentId: string]`: [`PersistentObject`](../modules.md#persistentobject)<[`Persistent`](../classes/Persistent.md)\>; }
@@ -1,63 +0,0 @@
1
- [entropic-bond](../README.md) / [Exports](../modules.md) / SignData
2
-
3
- # Interface: SignData
4
-
5
- ## Table of contents
6
-
7
- ### Properties
8
-
9
- - [authProvider](SignData.md#authprovider)
10
- - [email](SignData.md#email)
11
- - [name](SignData.md#name)
12
- - [password](SignData.md#password)
13
- - [verificationLink](SignData.md#verificationlink)
14
-
15
- ## Properties
16
-
17
- ### authProvider
18
-
19
- • **authProvider**: [`AuthProvider`](../modules.md#authprovider)
20
-
21
- #### Defined in
22
-
23
- [auth/user-auth-types.ts:16](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/auth/user-auth-types.ts#L16)
24
-
25
- ___
26
-
27
- ### email
28
-
29
- • `Optional` **email**: `string`
30
-
31
- #### Defined in
32
-
33
- [auth/user-auth-types.ts:17](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/auth/user-auth-types.ts#L17)
34
-
35
- ___
36
-
37
- ### name
38
-
39
- • `Optional` **name**: `string`
40
-
41
- #### Defined in
42
-
43
- [auth/user-auth-types.ts:19](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/auth/user-auth-types.ts#L19)
44
-
45
- ___
46
-
47
- ### password
48
-
49
- • `Optional` **password**: `string`
50
-
51
- #### Defined in
52
-
53
- [auth/user-auth-types.ts:18](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/auth/user-auth-types.ts#L18)
54
-
55
- ___
56
-
57
- ### verificationLink
58
-
59
- • `Optional` **verificationLink**: `string`
60
-
61
- #### Defined in
62
-
63
- [auth/user-auth-types.ts:20](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/auth/user-auth-types.ts#L20)
@@ -1,52 +0,0 @@
1
- [entropic-bond](../README.md) / [Exports](../modules.md) / StoreParams
2
-
3
- # Interface: StoreParams
4
-
5
- ## Table of contents
6
-
7
- ### Properties
8
-
9
- - [cloudStorageProvider](StoreParams.md#cloudstorageprovider)
10
- - [data](StoreParams.md#data)
11
- - [fileName](StoreParams.md#filename)
12
- - [progress](StoreParams.md#progress)
13
-
14
- ## Properties
15
-
16
- ### cloudStorageProvider
17
-
18
- • `Optional` **cloudStorageProvider**: [`CloudStorage`](../classes/CloudStorage.md)
19
-
20
- #### Defined in
21
-
22
- [cloud-storage/stored-file.ts:16](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/cloud-storage/stored-file.ts#L16)
23
-
24
- ___
25
-
26
- ### data
27
-
28
- • `Optional` **data**: [`StorableData`](../modules.md#storabledata)
29
-
30
- #### Defined in
31
-
32
- [cloud-storage/stored-file.ts:13](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/cloud-storage/stored-file.ts#L13)
33
-
34
- ___
35
-
36
- ### fileName
37
-
38
- • `Optional` **fileName**: `string`
39
-
40
- #### Defined in
41
-
42
- [cloud-storage/stored-file.ts:14](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/cloud-storage/stored-file.ts#L14)
43
-
44
- ___
45
-
46
- ### progress
47
-
48
- • `Optional` **progress**: [`UploadProgress`](../modules.md#uploadprogress)
49
-
50
- #### Defined in
51
-
52
- [cloud-storage/stored-file.ts:15](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/cloud-storage/stored-file.ts#L15)
@@ -1,41 +0,0 @@
1
- [entropic-bond](../README.md) / [Exports](../modules.md) / StoredFileChange
2
-
3
- # Interface: StoredFileChange
4
-
5
- ## Table of contents
6
-
7
- ### Properties
8
-
9
- - [event](StoredFileChange.md#event)
10
- - [pendingData](StoredFileChange.md#pendingdata)
11
- - [storedFile](StoredFileChange.md#storedfile)
12
-
13
- ## Properties
14
-
15
- ### event
16
-
17
- • **event**: [`StoredFileEvent`](../enums/StoredFileEvent.md)
18
-
19
- #### Defined in
20
-
21
- [cloud-storage/stored-file.ts:7](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/cloud-storage/stored-file.ts#L7)
22
-
23
- ___
24
-
25
- ### pendingData
26
-
27
- • `Optional` **pendingData**: [`StorableData`](../modules.md#storabledata)
28
-
29
- #### Defined in
30
-
31
- [cloud-storage/stored-file.ts:8](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/cloud-storage/stored-file.ts#L8)
32
-
33
- ___
34
-
35
- ### storedFile
36
-
37
- • **storedFile**: [`StoredFile`](../classes/StoredFile.md)
38
-
39
- #### Defined in
40
-
41
- [cloud-storage/stored-file.ts:9](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/cloud-storage/stored-file.ts#L9)
@@ -1,90 +0,0 @@
1
- [entropic-bond](../README.md) / [Exports](../modules.md) / UploadControl
2
-
3
- # Interface: UploadControl
4
-
5
- ## Table of contents
6
-
7
- ### Properties
8
-
9
- - [cancel](UploadControl.md#cancel)
10
- - [onProgress](UploadControl.md#onprogress)
11
- - [pause](UploadControl.md#pause)
12
- - [resume](UploadControl.md#resume)
13
-
14
- ## Properties
15
-
16
- ### cancel
17
-
18
- • **cancel**: () => `void`
19
-
20
- #### Type declaration
21
-
22
- ▸ (): `void`
23
-
24
- ##### Returns
25
-
26
- `void`
27
-
28
- #### Defined in
29
-
30
- [cloud-storage/cloud-storage.ts:12](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/cloud-storage/cloud-storage.ts#L12)
31
-
32
- ___
33
-
34
- ### onProgress
35
-
36
- • **onProgress**: (`callback`: [`UploadProgress`](../modules.md#uploadprogress)) => `void`
37
-
38
- #### Type declaration
39
-
40
- ▸ (`callback`): `void`
41
-
42
- ##### Parameters
43
-
44
- | Name | Type |
45
- | :------ | :------ |
46
- | `callback` | [`UploadProgress`](../modules.md#uploadprogress) |
47
-
48
- ##### Returns
49
-
50
- `void`
51
-
52
- #### Defined in
53
-
54
- [cloud-storage/cloud-storage.ts:13](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/cloud-storage/cloud-storage.ts#L13)
55
-
56
- ___
57
-
58
- ### pause
59
-
60
- • **pause**: () => `void`
61
-
62
- #### Type declaration
63
-
64
- ▸ (): `void`
65
-
66
- ##### Returns
67
-
68
- `void`
69
-
70
- #### Defined in
71
-
72
- [cloud-storage/cloud-storage.ts:10](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/cloud-storage/cloud-storage.ts#L10)
73
-
74
- ___
75
-
76
- ### resume
77
-
78
- • **resume**: () => `void`
79
-
80
- #### Type declaration
81
-
82
- ▸ (): `void`
83
-
84
- ##### Returns
85
-
86
- `void`
87
-
88
- #### Defined in
89
-
90
- [cloud-storage/cloud-storage.ts:11](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/cloud-storage/cloud-storage.ts#L11)
@@ -1,113 +0,0 @@
1
- [entropic-bond](../README.md) / [Exports](../modules.md) / UserCredentials
2
-
3
- # Interface: UserCredentials<T\>
4
-
5
- ## Type parameters
6
-
7
- | Name | Type |
8
- | :------ | :------ |
9
- | `T` | extends `Object` = {} |
10
-
11
- ## Table of contents
12
-
13
- ### Properties
14
-
15
- - [creationDate](UserCredentials.md#creationdate)
16
- - [customData](UserCredentials.md#customdata)
17
- - [email](UserCredentials.md#email)
18
- - [emailVerified](UserCredentials.md#emailverified)
19
- - [id](UserCredentials.md#id)
20
- - [lastLogin](UserCredentials.md#lastlogin)
21
- - [name](UserCredentials.md#name)
22
- - [phoneNumber](UserCredentials.md#phonenumber)
23
- - [pictureUrl](UserCredentials.md#pictureurl)
24
-
25
- ## Properties
26
-
27
- ### creationDate
28
-
29
- • `Optional` **creationDate**: `number`
30
-
31
- #### Defined in
32
-
33
- [auth/user-auth-types.ts:10](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/auth/user-auth-types.ts#L10)
34
-
35
- ___
36
-
37
- ### customData
38
-
39
- • `Optional` **customData**: `T`
40
-
41
- #### Defined in
42
-
43
- [auth/user-auth-types.ts:8](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/auth/user-auth-types.ts#L8)
44
-
45
- ___
46
-
47
- ### email
48
-
49
- • **email**: `string`
50
-
51
- #### Defined in
52
-
53
- [auth/user-auth-types.ts:3](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/auth/user-auth-types.ts#L3)
54
-
55
- ___
56
-
57
- ### emailVerified
58
-
59
- • `Optional` **emailVerified**: `boolean`
60
-
61
- #### Defined in
62
-
63
- [auth/user-auth-types.ts:7](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/auth/user-auth-types.ts#L7)
64
-
65
- ___
66
-
67
- ### id
68
-
69
- • **id**: `string`
70
-
71
- #### Defined in
72
-
73
- [auth/user-auth-types.ts:2](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/auth/user-auth-types.ts#L2)
74
-
75
- ___
76
-
77
- ### lastLogin
78
-
79
- • `Optional` **lastLogin**: `number`
80
-
81
- #### Defined in
82
-
83
- [auth/user-auth-types.ts:9](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/auth/user-auth-types.ts#L9)
84
-
85
- ___
86
-
87
- ### name
88
-
89
- • `Optional` **name**: `string`
90
-
91
- #### Defined in
92
-
93
- [auth/user-auth-types.ts:4](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/auth/user-auth-types.ts#L4)
94
-
95
- ___
96
-
97
- ### phoneNumber
98
-
99
- • `Optional` **phoneNumber**: `string`
100
-
101
- #### Defined in
102
-
103
- [auth/user-auth-types.ts:6](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/auth/user-auth-types.ts#L6)
104
-
105
- ___
106
-
107
- ### pictureUrl
108
-
109
- • `Optional` **pictureUrl**: `string`
110
-
111
- #### Defined in
112
-
113
- [auth/user-auth-types.ts:5](https://github.com/entropic-bond/entropic-bond/blob/c9dd385/src/auth/user-auth-types.ts#L5)
@@ -1,17 +0,0 @@
1
- [entropic-bond](../README.md) / [Exports](../modules.md) / Values
2
-
3
- # Interface: Values
4
-
5
- A map of key-value pairs
6
-
7
- **`Param`**
8
-
9
- the name of the variable
10
-
11
- **`Param`**
12
-
13
- the value of the variable
14
-
15
- ## Indexable
16
-
17
- ▪ [varName: `string`]: `string`