@messenger-box/platform-client 10.0.3-alpha.17 → 10.0.3-alpha.171
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/graphql/fragments/post-message.gql +36 -0
- package/lib/graphql/id-generation.js.map +1 -1
- package/lib/graphql/index.js.map +1 -1
- package/lib/graphql/mutations/channel-mutation.gql +5 -0
- package/lib/graphql/mutations/messages-mutation.gql +3 -0
- package/lib/graphql/policies/channel-policies.d.ts.map +1 -1
- package/lib/graphql/policies/channel-policies.js +150 -2
- package/lib/graphql/policies/channel-policies.js.map +1 -1
- package/lib/graphql/policies/messages-policies.d.ts.map +1 -1
- package/lib/graphql/policies/messages-policies.js +229 -37
- package/lib/graphql/policies/messages-policies.js.map +1 -1
- package/lib/graphql/policies/post-thread-policies.d.ts.map +1 -1
- package/lib/graphql/policies/post-thread-policies.js +136 -31
- package/lib/graphql/policies/post-thread-policies.js.map +1 -1
- package/lib/graphql/policies/posts-policies.js.map +1 -1
- package/lib/graphql/policies/teams-policies.d.ts.map +1 -1
- package/lib/graphql/policies/teams-policies.js +13 -1
- package/lib/graphql/policies/teams-policies.js.map +1 -1
- package/lib/graphql/policies/user-account-policies.js.map +1 -1
- package/lib/graphql/policies/user-policies.js.map +1 -1
- package/lib/graphql/queries/channels-by-user.gql +26 -0
- package/lib/graphql/queries/messages.gql +2 -2
- package/lib/graphql/queries/organization-query.gql +70 -35
- package/lib/graphql/queries/post-thread-message.gql +4 -0
- package/lib/graphql/queries/teams-query.gql +29 -29
- package/lib/graphql/queries/user-account.gql +1 -1
- package/lib/graphql/queries/users.gql +1 -1
- package/lib/graphql/schema/index.js.map +1 -1
- package/lib/graphql/subscription/fileUpdated.gql +11 -0
- package/lib/hooks/use-base-file-upload.hook.d.ts.map +1 -1
- package/lib/hooks/use-upload-file.hook.d.ts +1 -1
- package/lib/hooks/use-upload-file.hook.d.ts.map +1 -1
- package/lib/hooks/use-upload-file.hook.js +1 -1
- package/lib/hooks/use-upload-file.hook.js.map +1 -1
- package/lib/hooks/use-upload-file.hook.native.d.ts +1 -1
- package/lib/hooks/use-upload-file.hook.native.d.ts.map +1 -1
- package/lib/hooks/use-upload-file.hook.native.js +1 -1
- package/lib/hooks/use-upload-file.hook.native.js.map +1 -1
- package/lib/hooks/use-upload-files.hook.d.ts +1 -1
- package/lib/hooks/use-upload-files.hook.d.ts.map +1 -1
- package/lib/hooks/use-upload-files.hook.js +1 -1
- package/lib/hooks/use-upload-files.hook.js.map +1 -1
- package/lib/hooks/use-upload-files.hook.native.d.ts +1 -1
- package/lib/hooks/use-upload-files.hook.native.d.ts.map +1 -1
- package/lib/hooks/use-upload-files.hook.native.js +1 -1
- package/lib/hooks/use-upload-files.hook.native.js.map +1 -1
- package/lib/utils/index.d.ts.map +1 -1
- package/lib/utils/index.js.map +1 -1
- package/package.json +4 -4
- package/CHANGELOG.md +0 -141
- package/jest.config.js +0 -25
- package/rollup.config.mjs +0 -36
- package/src/graphql/fragments/configuration.gql +0 -12
- package/src/graphql/fragments/extended-user-account.gql +0 -10
- package/src/graphql/fragments/file-info.gql +0 -12
- package/src/graphql/fragments/messenger-user.gql +0 -15
- package/src/graphql/fragments/minimal-user.gql +0 -9
- package/src/graphql/fragments/post-message.gql +0 -116
- package/src/graphql/fragments/post-thread-message.gql +0 -77
- package/src/graphql/fragments/user.gql +0 -11
- package/src/graphql/id-generation.ts +0 -8
- package/src/graphql/index.ts +0 -24
- package/src/graphql/mutations/channel-mutation.gql +0 -72
- package/src/graphql/mutations/expo-notification-token.gql +0 -13
- package/src/graphql/mutations/message-threads-mutation.gql +0 -44
- package/src/graphql/mutations/messages-mutation.gql +0 -110
- package/src/graphql/mutations/messages-mutation.gql.bk +0 -66
- package/src/graphql/mutations/organization-mutation.gql.bk +0 -14
- package/src/graphql/mutations/teams-mutation.gql.bk +0 -8
- package/src/graphql/policies/channel-policies.ts +0 -7
- package/src/graphql/policies/index.ts +0 -7
- package/src/graphql/policies/messages-policies.ts +0 -109
- package/src/graphql/policies/post-thread-policies.ts +0 -59
- package/src/graphql/policies/posts-policies.ts +0 -110
- package/src/graphql/policies/teams-policies.ts +0 -7
- package/src/graphql/policies/user-account-policies.ts +0 -15
- package/src/graphql/policies/user-policies.ts +0 -32
- package/src/graphql/queries/channel.gql +0 -57
- package/src/graphql/queries/channels-by-user.gql +0 -60
- package/src/graphql/queries/check-for-new-messages.gql +0 -5
- package/src/graphql/queries/file-url.gql +0 -5
- package/src/graphql/queries/get-device-token.gql +0 -8
- package/src/graphql/queries/messages.gql +0 -28
- package/src/graphql/queries/organization-query.gql +0 -90
- package/src/graphql/queries/post-message.gql +0 -8
- package/src/graphql/queries/post-thread-message.gql +0 -20
- package/src/graphql/queries/support-service-channels.gql +0 -18
- package/src/graphql/queries/teams-query.gql +0 -32
- package/src/graphql/queries/user-account.gql +0 -5
- package/src/graphql/queries/users.gql +0 -48
- package/src/graphql/schema/index.ts +0 -6
- package/src/graphql/schema/messages.graphql +0 -5
- package/src/graphql/schema/post.graphql +0 -44
- package/src/graphql/schema/services.graphql +0 -6
- package/src/graphql/schema/user-account.graphql +0 -3
- package/src/graphql/subscription/chat-message-added.gql +0 -6
- package/src/graphql/subscription/public-post-added.gql +0 -5
- package/src/graphql/subscription/thread-chat-message-added.gql +0 -5
- package/src/graphql/subscription/thread-created-updated.gql +0 -12
- package/src/hooks/index.ts +0 -4
- package/src/hooks/use-base-file-upload.hook.ts +0 -148
- package/src/hooks/use-upload-file.hook.native.ts +0 -22
- package/src/hooks/use-upload-file.hook.ts +0 -22
- package/src/hooks/use-upload-files.hook.native.ts +0 -22
- package/src/hooks/use-upload-files.hook.ts +0 -22
- package/src/index.ts +0 -3
- package/src/inversify-containers/index.ts +0 -1
- package/src/inversify-containers/module.ts +0 -4
- package/src/packages/constants/constants.ts +0 -1831
- package/src/packages/types/channels.ts +0 -194
- package/src/packages/types/emojis.ts +0 -41
- package/src/packages/types/files.ts +0 -43
- package/src/packages/types/posts.ts +0 -155
- package/src/packages/types/reactions.ts +0 -8
- package/src/packages/types/teams.ts +0 -109
- package/src/packages/types/utilities.ts +0 -30
- package/src/services/index.ts +0 -0
- package/src/tests/mutation/__snapshots__/set-device-token.test.ts.snap +0 -18
- package/src/tests/mutation/set-device-token.test.ts +0 -85
- package/src/utils/constants.tsx +0 -1120
- package/src/utils/i18n.tsx +0 -15
- package/src/utils/index.ts +0 -34
- package/src/utils/post_list.ts +0 -54
- package/src/utils/post_utils.ts +0 -33
- package/src/utils/user_agent.tsx +0 -153
- package/src/utils/utils.tsx +0 -54
- package/tsconfig.json +0 -14
- package/webpack.config.js +0 -58
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-upload-files.hook.js","sources":["../../src/hooks/use-upload-files.hook.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-upload-files.hook.js","sources":["../../src/hooks/use-upload-files.hook.ts"],"sourcesContent":[null],"names":[],"mappings":"6MAGa,cAAc,GAAG,MAC1B,aAAa,CAAC;AACV,EAAA,gBAAA,EAAgB;AACZ,IAAA,IAAA,EAAA,8BAAM;AACN,IAAA,QAAA,EAAA,uCAAU;oBACV,EAAA,CAAA,KAAmB,EAAA,eAAkB;AACjC,MAAA,SAAA,EAAA,KAAS,CAAE,OAAM,CAAA,KAAO,CAAC,GAAA,KAAQ,CAAC,GAAA,CAAA,QAAW,IAAI,CAAE,IAAG,CAAA,GAAK,CAAA,KAAM,CAAC,IAAE,CAAA;AACpE,MAAA,IAAA,OAAI,SAAO,KAAA,QAAc,GAAA,SAAW,GAAA,EAAA;;AAE3C,GAAA;AACD,EAAA,gBAAA,EAAgB;AACZ,IAAA,IAAA,EAAA,8BAAM;AACN,IAAA,QAAA,EAAA,uCAAU;oBACV,EAAA,CAAA,KAAmB,EAAA,eAAkB;;AAEjC,MAAA,IAAA,OAAI,SAAO,KAAA,QAAc,GAAA,SAAW,GAAA,EAAA;;AAE3C;AACJ,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { useUploadFile } from '@
|
|
1
|
+
import { useUploadFile } from '@adminide-stack/file-info-client/lib/hooks/use-file-upload.native.js';
|
|
2
2
|
export declare const useUploadFiles: () => ReturnType<typeof useUploadFile>;
|
|
3
3
|
//# sourceMappingURL=use-upload-files.hook.native.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-upload-files.hook.native.d.ts","sourceRoot":"","sources":["../../src/hooks/use-upload-files.hook.native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"use-upload-files.hook.native.d.ts","sourceRoot":"","sources":["../../src/hooks/use-upload-files.hook.native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sEAAsE,CAAC;AAGrG,eAAO,MAAM,cAAc,QAAO,UAAU,CAAC,OAAO,aAAa,CAkB3D,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {useUploadFile}from'@
|
|
1
|
+
import {useUploadFile}from'@adminide-stack/file-info-client/lib/hooks/use-file-upload.native.js';import {useAttachUploadedFilesToMessageMutation,useCreateMessageFilesUploadLinkMutation}from'common/graphql';const useUploadFiles = () => useUploadFile({
|
|
2
2
|
createUploadLink: {
|
|
3
3
|
name: 'createMessageFilesUploadLink',
|
|
4
4
|
mutation: useCreateMessageFilesUploadLinkMutation,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-upload-files.hook.native.js","sources":["../../src/hooks/use-upload-files.hook.native.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-upload-files.hook.native.js","sources":["../../src/hooks/use-upload-files.hook.native.ts"],"sourcesContent":[null],"names":[],"mappings":"oNAGa,cAAc,GAAG,MAC1B,aAAa,CAAC;AACV,EAAA,gBAAA,EAAgB;AACZ,IAAA,IAAA,EAAA,8BAAM;AACN,IAAA,QAAA,EAAA,uCAAU;oBACV,EAAA,CAAA,KAAmB,EAAA,eAAkB;AACjC,MAAA,SAAA,EAAA,KAAS,CAAE,OAAM,CAAA,KAAO,CAAC,GAAA,KAAQ,CAAC,GAAA,CAAA,QAAW,IAAI,CAAE,IAAG,CAAA,GAAK,CAAA,KAAM,CAAC,IAAE,CAAA;AACpE,MAAA,IAAA,OAAI,SAAO,KAAA,QAAc,GAAA,SAAW,GAAA,EAAA;;AAE3C,GAAA;AACD,EAAA,gBAAA,EAAgB;AACZ,IAAA,IAAA,EAAA,8BAAM;AACN,IAAA,QAAA,EAAA,uCAAU;oBACV,EAAA,CAAA,KAAmB,EAAA,eAAkB;;AAEjC,MAAA,IAAA,OAAI,SAAO,KAAA,QAAc,GAAA,SAAW,GAAA,EAAA;;AAE3C;AACJ,CAAA"}
|
package/lib/utils/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,GAAI,qBAAgB,EAAE,iBAAY,QAU9B,CAAC;AAElC,eAAO,MAAM,iBAAiB,GAAI,qBAAgB,EAAE,mBAAc,QAWjC,CAAC;AAElC,eAAO,MAAM,eAAe,GAAI,qBAAgB,EAAE,iBAAY,QAQ7B,CAAC"}
|
package/lib/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/utils/index.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/utils/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,gBAAgB,GAAG,CAAC,gBAAgB,EAAE,YAAY,KAC3D,gBAAgB,CAAA,GAAA,CAAA,IAAA,IAAA;AACX,EAAA,IAAA,YAAa,CAAA,OAAA,CAAA,IAAA,CAAA,GAAA,CAAA,KAAA,EAAA,EAAA;AACV,IAAA,MAAI;UACA;eACO;AACH,MAAA,GAAA;YACF;IACN,OAAC;AACL,MAAE,CAAA,IAAA,GAAA;QACD,IAAO,EAAC,IAAK,CAAA,GAAI;AAE1B,QAAO,GAAA;AAEE;AACG,KAAA;AACI,EAAA;SACA,CAAA,KAAO,IAAA,KAAA;AACH,MAAC,iBAAW,GAAA,CAAA,gBAAA,EAAA,cAAA,KAAA,gBAAA,CAAA,GAAA,CAAA,IAAA,IAAA;oBACd,CAAA,OAAA,CAAA,IAAA,CAAA,GAAA,CAAA,KAAA,EAAA,EAAA;IACN,MAAC;AACD,MAAA;AACJ,KAAE,GAAA,IAAA;WACK;AAEf,MAAM,CAAC,IAAA,GAAM;AAEJ,KAAA;AACG,EAAA;SACI,IAAA;AACA,CAAA,CAAA,CAAA,MAAA,CAAA,KAAO,IAAI,KAAC;AACf,MAAA,eAAA,GAAA,CAAA,gBAAA,EAAA,YAAA,KAAA,gBAAA,CAAA,GAAA,CAAA,IAAA,IAAA;AACL,EAAE,IAAA,YAAA,CAAA,OAAA,CAAA,IAAA,CAAA,GAAA,CAAA,KAAA,EAAA,EAAA;UACD;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@messenger-box/platform-client",
|
|
3
|
-
"version": "10.0.3-alpha.
|
|
3
|
+
"version": "10.0.3-alpha.171",
|
|
4
4
|
"description": "Sample core for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"watch": "yarn build:lib:watch"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@
|
|
24
|
-
"@messenger-box/core": "10.0.3-alpha.17",
|
|
23
|
+
"@messenger-box/core": "10.0.3-alpha.165",
|
|
25
24
|
"key-mirror": "1.0.1",
|
|
26
25
|
"moment-timezone": "0.5.33"
|
|
27
26
|
},
|
|
28
27
|
"peerDependencies": {
|
|
28
|
+
"@adminide-stack/file-info-client": "*",
|
|
29
29
|
"@apollo/client": "*",
|
|
30
30
|
"lodash": "*"
|
|
31
31
|
},
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"typescript": {
|
|
36
36
|
"definition": "lib/index.d.ts"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "c1244ee70b3e40dec9916c2ef7e801695ecc7b5a"
|
|
39
39
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
## [10.0.3-alpha.17](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.16...v10.0.3-alpha.17) (2025-04-08)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @messenger-box/platform-client
|
|
9
|
-
|
|
10
|
-
## [10.0.3-alpha.16](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.15...v10.0.3-alpha.16) (2025-03-28)
|
|
11
|
-
|
|
12
|
-
**Note:** Version bump only for package @messenger-box/platform-client
|
|
13
|
-
|
|
14
|
-
## [10.0.3-alpha.14](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.13...v10.0.3-alpha.14) (2025-03-27)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @messenger-box/platform-client
|
|
17
|
-
|
|
18
|
-
## [10.0.3-alpha.7](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.6...v10.0.3-alpha.7) (2025-02-27)
|
|
19
|
-
|
|
20
|
-
**Note:** Version bump only for package @messenger-box/platform-client
|
|
21
|
-
|
|
22
|
-
## [10.0.3-alpha.5](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.4...v10.0.3-alpha.5) (2025-02-25)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package @messenger-box/platform-client
|
|
25
|
-
|
|
26
|
-
## [10.0.3-alpha.0](https://github.com/cdmbase/messenger-box/compare/v10.0.2-alpha.6...v10.0.3-alpha.0) (2025-02-24)
|
|
27
|
-
|
|
28
|
-
**Note:** Version bump only for package @messenger-box/platform-client
|
|
29
|
-
|
|
30
|
-
## [10.0.2-alpha.5](https://github.com/CDEBase/messenger-box/compare/v10.0.2-alpha.4...v10.0.2-alpha.5) (2025-02-24)
|
|
31
|
-
|
|
32
|
-
**Note:** Version bump only for package @messenger-box/platform-client
|
|
33
|
-
|
|
34
|
-
## [10.0.2-alpha.4](https://github.com/CDEBase/messenger-box/compare/v10.0.2-alpha.3...v10.0.2-alpha.4) (2025-02-10)
|
|
35
|
-
|
|
36
|
-
**Note:** Version bump only for package @messenger-box/platform-client
|
|
37
|
-
|
|
38
|
-
## [10.0.2-alpha.3](https://github.com/CDEBase/messenger-box/compare/v10.0.2-alpha.2...v10.0.2-alpha.3) (2025-02-10)
|
|
39
|
-
|
|
40
|
-
**Note:** Version bump only for package @messenger-box/platform-client
|
|
41
|
-
|
|
42
|
-
## [10.0.2-alpha.2](https://github.com/CDEBase/messenger-box/compare/v10.0.2-alpha.1...v10.0.2-alpha.2) (2025-02-10)
|
|
43
|
-
|
|
44
|
-
**Note:** Version bump only for package @messenger-box/platform-client
|
|
45
|
-
|
|
46
|
-
## [10.0.2-alpha.0](https://github.com/cdmbase/messenger-box/compare/v9.0.4-alpha.23...v10.0.2-alpha.0) (2025-02-04)
|
|
47
|
-
|
|
48
|
-
**Note:** Version bump only for package @messenger-box/platform-client
|
|
49
|
-
|
|
50
|
-
## [10.0.1-alpha.0](https://github.com/cdmbase/messenger-box/compare/v9.0.4-alpha.23...v10.0.1-alpha.0) (2025-02-04)
|
|
51
|
-
|
|
52
|
-
**Note:** Version bump only for package @messenger-box/platform-client
|
|
53
|
-
|
|
54
|
-
## [9.0.4-alpha.22](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.21...v9.0.4-alpha.22) (2025-01-31)
|
|
55
|
-
|
|
56
|
-
**Note:** Version bump only for package @messenger-box/platform-client
|
|
57
|
-
|
|
58
|
-
## [9.0.4-alpha.17](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.16...v9.0.4-alpha.17) (2024-10-17)
|
|
59
|
-
|
|
60
|
-
**Note:** Version bump only for package @messenger-box/platform-client
|
|
61
|
-
|
|
62
|
-
## [9.0.4-alpha.15](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.14...v9.0.4-alpha.15) (2024-09-30)
|
|
63
|
-
|
|
64
|
-
**Note:** Version bump only for package @messenger-box/platform-client
|
|
65
|
-
|
|
66
|
-
## [9.0.4-alpha.7](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.6...v9.0.4-alpha.7) (2024-09-20)
|
|
67
|
-
|
|
68
|
-
**Note:** Version bump only for package @messenger-box/platform-client
|
|
69
|
-
|
|
70
|
-
## [9.0.4-alpha.1](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.0...v9.0.4-alpha.1) (2024-09-12)
|
|
71
|
-
|
|
72
|
-
**Note:** Version bump only for package @messenger-box/platform-client
|
|
73
|
-
|
|
74
|
-
## [9.0.2-alpha.0](https://github.com/CDEBase/messenger-box/compare/v7.2.6-alpha.10...v9.0.2-alpha.0) (2024-09-06)
|
|
75
|
-
|
|
76
|
-
**Note:** Version bump only for package @messenger-box/platform-client
|
|
77
|
-
|
|
78
|
-
## [7.2.6-alpha.4](https://github.com/CDEBase/messenger-box/compare/v7.2.6-alpha.3...v7.2.6-alpha.4) (2024-08-12)
|
|
79
|
-
|
|
80
|
-
**Note:** Version bump only for package @messenger-box/platform-client
|
|
81
|
-
|
|
82
|
-
## 7.2.6-alpha.0 (2024-08-11)
|
|
83
|
-
|
|
84
|
-
### Bug Fixes
|
|
85
|
-
|
|
86
|
-
- auth issue ([57ec2c5](https://github.com/CDEBase/messenger-box/commit/57ec2c56bf247fda1c4649c26480959c958a89f5))
|
|
87
|
-
- backend-server issue ([34f735f](https://github.com/CDEBase/messenger-box/commit/34f735fd8d8be06e6a88b60893f0b1d51d26b3c9))
|
|
88
|
-
- develop builds ([7a06a35](https://github.com/CDEBase/messenger-box/commit/7a06a35230c7c08b19bb60606b8b0f807acfdf6e))
|
|
89
|
-
- file upload mutations ([8b253dd](https://github.com/CDEBase/messenger-box/commit/8b253dd2f10e810746ae003495fc411c3994480e))
|
|
90
|
-
- **messenger:** failed image uploads in messages ([ee327aa](https://github.com/CDEBase/messenger-box/commit/ee327aaff25393c2452d81c71a39b725e8f16712))
|
|
91
|
-
- **mobile:** image upload in the mobile inbox ([effa26f](https://github.com/CDEBase/messenger-box/commit/effa26f9b4199f0c572d1a5880dea13578f56d6c))
|
|
92
|
-
|
|
93
|
-
### Features
|
|
94
|
-
|
|
95
|
-
- add proeprty ext module with fills based on property types ([9728317](https://github.com/CDEBase/messenger-box/commit/97283176059dca7e4bd78ad4de7bc26ae0492387))
|
|
96
|
-
- add seperate modules for react native ([63e3ac2](https://github.com/CDEBase/messenger-box/commit/63e3ac2f7840cce28ee04e79b9a1993e148786e7))
|
|
97
|
-
- **chkra-ui:** move improved components from the pubngo repo to here ([0e1a7b1](https://github.com/CDEBase/messenger-box/commit/0e1a7b13373cb21f3c9ea2a3d9872022de69ea09))
|
|
98
|
-
- **messenger:** add filters to users channel query ([6b349c6](https://github.com/CDEBase/messenger-box/commit/6b349c6db204413dd3f5eb991f8fc8d80a0304a2))
|
|
99
|
-
- **platform:** update channel model ([17cad51](https://github.com/CDEBase/messenger-box/commit/17cad51f6670d0cdf2e518d2699c3018ac7eaaf4))
|
|
100
|
-
|
|
101
|
-
## 7.2.4-alpha.0 (2024-07-19)
|
|
102
|
-
|
|
103
|
-
### Bug Fixes
|
|
104
|
-
|
|
105
|
-
- auth issue ([57ec2c5](https://github.com/CDEBase/messenger-box/commit/57ec2c56bf247fda1c4649c26480959c958a89f5))
|
|
106
|
-
- backend-server issue ([34f735f](https://github.com/CDEBase/messenger-box/commit/34f735fd8d8be06e6a88b60893f0b1d51d26b3c9))
|
|
107
|
-
- develop builds ([7a06a35](https://github.com/CDEBase/messenger-box/commit/7a06a35230c7c08b19bb60606b8b0f807acfdf6e))
|
|
108
|
-
- file upload mutations ([8b253dd](https://github.com/CDEBase/messenger-box/commit/8b253dd2f10e810746ae003495fc411c3994480e))
|
|
109
|
-
- **messenger:** failed image uploads in messages ([ee327aa](https://github.com/CDEBase/messenger-box/commit/ee327aaff25393c2452d81c71a39b725e8f16712))
|
|
110
|
-
- **mobile:** image upload in the mobile inbox ([effa26f](https://github.com/CDEBase/messenger-box/commit/effa26f9b4199f0c572d1a5880dea13578f56d6c))
|
|
111
|
-
|
|
112
|
-
### Features
|
|
113
|
-
|
|
114
|
-
- add proeprty ext module with fills based on property types ([9728317](https://github.com/CDEBase/messenger-box/commit/97283176059dca7e4bd78ad4de7bc26ae0492387))
|
|
115
|
-
- add seperate modules for react native ([63e3ac2](https://github.com/CDEBase/messenger-box/commit/63e3ac2f7840cce28ee04e79b9a1993e148786e7))
|
|
116
|
-
- **chkra-ui:** move improved components from the pubngo repo to here ([0e1a7b1](https://github.com/CDEBase/messenger-box/commit/0e1a7b13373cb21f3c9ea2a3d9872022de69ea09))
|
|
117
|
-
- **messenger:** add filters to users channel query ([6b349c6](https://github.com/CDEBase/messenger-box/commit/6b349c6db204413dd3f5eb991f8fc8d80a0304a2))
|
|
118
|
-
- **platform:** update channel model ([17cad51](https://github.com/CDEBase/messenger-box/commit/17cad51f6670d0cdf2e518d2699c3018ac7eaaf4))
|
|
119
|
-
|
|
120
|
-
## [7.2.1-alpha.2](https://github.com/CDEBase/messenger-box/compare/v7.2.1-alpha.1...v7.2.1-alpha.2) (2024-07-16)
|
|
121
|
-
|
|
122
|
-
**Note:** Version bump only for package @messenger-box/platform-client
|
|
123
|
-
|
|
124
|
-
## 7.2.1-alpha.0 (2024-07-15)
|
|
125
|
-
|
|
126
|
-
### Bug Fixes
|
|
127
|
-
|
|
128
|
-
- auth issue ([57ec2c5](https://github.com/CDEBase/messenger-box/commit/57ec2c56bf247fda1c4649c26480959c958a89f5))
|
|
129
|
-
- backend-server issue ([34f735f](https://github.com/CDEBase/messenger-box/commit/34f735fd8d8be06e6a88b60893f0b1d51d26b3c9))
|
|
130
|
-
- develop builds ([7a06a35](https://github.com/CDEBase/messenger-box/commit/7a06a35230c7c08b19bb60606b8b0f807acfdf6e))
|
|
131
|
-
- file upload mutations ([8b253dd](https://github.com/CDEBase/messenger-box/commit/8b253dd2f10e810746ae003495fc411c3994480e))
|
|
132
|
-
- **messenger:** failed image uploads in messages ([ee327aa](https://github.com/CDEBase/messenger-box/commit/ee327aaff25393c2452d81c71a39b725e8f16712))
|
|
133
|
-
- **mobile:** image upload in the mobile inbox ([effa26f](https://github.com/CDEBase/messenger-box/commit/effa26f9b4199f0c572d1a5880dea13578f56d6c))
|
|
134
|
-
|
|
135
|
-
### Features
|
|
136
|
-
|
|
137
|
-
- add proeprty ext module with fills based on property types ([9728317](https://github.com/CDEBase/messenger-box/commit/97283176059dca7e4bd78ad4de7bc26ae0492387))
|
|
138
|
-
- add seperate modules for react native ([63e3ac2](https://github.com/CDEBase/messenger-box/commit/63e3ac2f7840cce28ee04e79b9a1993e148786e7))
|
|
139
|
-
- **chkra-ui:** move improved components from the pubngo repo to here ([0e1a7b1](https://github.com/CDEBase/messenger-box/commit/0e1a7b13373cb21f3c9ea2a3d9872022de69ea09))
|
|
140
|
-
- **messenger:** add filters to users channel query ([6b349c6](https://github.com/CDEBase/messenger-box/commit/6b349c6db204413dd3f5eb991f8fc8d80a0304a2))
|
|
141
|
-
- **platform:** update channel model ([17cad51](https://github.com/CDEBase/messenger-box/commit/17cad51f6670d0cdf2e518d2699c3018ac7eaaf4))
|
package/jest.config.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
const merge = require('merge');
|
|
2
|
-
const baseConfig = require('../../../jest.config.base');
|
|
3
|
-
|
|
4
|
-
const mergeData = merge.recursive(
|
|
5
|
-
baseConfig,
|
|
6
|
-
{
|
|
7
|
-
// testEnvironment: 'jsdom',
|
|
8
|
-
transform: {
|
|
9
|
-
'\\.(js|jsx)?$': '../../../transform.js',
|
|
10
|
-
},
|
|
11
|
-
//transformIgnorePatterns: ['<rootDir>/node_modules/(?!(@react-native|react-native|@expo/vector-icons)/).*/'],
|
|
12
|
-
// moduleNameMapper: {
|
|
13
|
-
// '^__mocks__/(.*)$': '<rootDir>/../../__mocks__/$1',
|
|
14
|
-
// // we'll use commonjs version of lodash for tests 👌
|
|
15
|
-
// // because we don't need to use any kind of tree shaking right?!
|
|
16
|
-
// '^lodash-es$': '<rootDir>/../../../node_modules/lodash/index.js',
|
|
17
|
-
// },
|
|
18
|
-
roots: ['src/tests'],
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
globals: {},
|
|
22
|
-
},
|
|
23
|
-
);
|
|
24
|
-
|
|
25
|
-
module.exports = mergeData;
|
package/rollup.config.mjs
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { createRollupConfig } from '../../../rollup.config.base.mjs';
|
|
2
|
-
|
|
3
|
-
// Define any additional plugins specific to this bundle
|
|
4
|
-
const additionalPlugins = [];
|
|
5
|
-
|
|
6
|
-
// Use the createRollupConfig function to merge the base and specific configurations
|
|
7
|
-
export default (commandLineArgs) => {
|
|
8
|
-
const isWatchMode = commandLineArgs.watch;
|
|
9
|
-
return [
|
|
10
|
-
createRollupConfig(
|
|
11
|
-
{
|
|
12
|
-
input: ['src/index.ts'],
|
|
13
|
-
plugins: [
|
|
14
|
-
// Spread in additional plugins specific to this config
|
|
15
|
-
...additionalPlugins,
|
|
16
|
-
],
|
|
17
|
-
output: [
|
|
18
|
-
{
|
|
19
|
-
dir: 'lib',
|
|
20
|
-
format: 'es',
|
|
21
|
-
name: 'Accounts',
|
|
22
|
-
compact: true,
|
|
23
|
-
exports: 'named',
|
|
24
|
-
sourcemap: true,
|
|
25
|
-
preserveModules: true,
|
|
26
|
-
chunkFileNames: '[name]-[hash].[format].js',
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
isWatchMode,
|
|
32
|
-
generateRoutesJSON: false,
|
|
33
|
-
},
|
|
34
|
-
),
|
|
35
|
-
];
|
|
36
|
-
};
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
fragment Post on Post {
|
|
2
|
-
id
|
|
3
|
-
channel {
|
|
4
|
-
id
|
|
5
|
-
}
|
|
6
|
-
author {
|
|
7
|
-
...MessengerUser
|
|
8
|
-
}
|
|
9
|
-
isPinned
|
|
10
|
-
message
|
|
11
|
-
type
|
|
12
|
-
isDelivered
|
|
13
|
-
isRead
|
|
14
|
-
parentId
|
|
15
|
-
createdAt
|
|
16
|
-
fromServer
|
|
17
|
-
updatedAt
|
|
18
|
-
|
|
19
|
-
# propsConfiguration {
|
|
20
|
-
# ...Configuration
|
|
21
|
-
# }
|
|
22
|
-
props
|
|
23
|
-
files {
|
|
24
|
-
totalCount
|
|
25
|
-
data {
|
|
26
|
-
id
|
|
27
|
-
name
|
|
28
|
-
extension
|
|
29
|
-
mimeType
|
|
30
|
-
height
|
|
31
|
-
width
|
|
32
|
-
size
|
|
33
|
-
url
|
|
34
|
-
refType
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
replies {
|
|
38
|
-
...PostReplies
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
fragment PostReplies on Messages {
|
|
43
|
-
totalCount
|
|
44
|
-
data {
|
|
45
|
-
author {
|
|
46
|
-
...MessengerUser
|
|
47
|
-
}
|
|
48
|
-
id
|
|
49
|
-
isPinned
|
|
50
|
-
message
|
|
51
|
-
type
|
|
52
|
-
isDelivered
|
|
53
|
-
isRead
|
|
54
|
-
parentId
|
|
55
|
-
createdAt
|
|
56
|
-
fromServer
|
|
57
|
-
updatedAt
|
|
58
|
-
# propsConfiguration {
|
|
59
|
-
# ...Configuration
|
|
60
|
-
# }
|
|
61
|
-
props
|
|
62
|
-
files {
|
|
63
|
-
totalCount
|
|
64
|
-
data {
|
|
65
|
-
id
|
|
66
|
-
name
|
|
67
|
-
extension
|
|
68
|
-
mimeType
|
|
69
|
-
height
|
|
70
|
-
width
|
|
71
|
-
size
|
|
72
|
-
url
|
|
73
|
-
refType
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
fragment PostWithoutReplies on Post {
|
|
81
|
-
id
|
|
82
|
-
channel {
|
|
83
|
-
id
|
|
84
|
-
}
|
|
85
|
-
author {
|
|
86
|
-
...MessengerUser
|
|
87
|
-
}
|
|
88
|
-
isPinned
|
|
89
|
-
message
|
|
90
|
-
type
|
|
91
|
-
isDelivered
|
|
92
|
-
isRead
|
|
93
|
-
parentId
|
|
94
|
-
createdAt
|
|
95
|
-
fromServer
|
|
96
|
-
updatedAt
|
|
97
|
-
|
|
98
|
-
# propsConfiguration {
|
|
99
|
-
# ...Configuration
|
|
100
|
-
# }
|
|
101
|
-
props
|
|
102
|
-
files {
|
|
103
|
-
totalCount
|
|
104
|
-
data {
|
|
105
|
-
id
|
|
106
|
-
name
|
|
107
|
-
extension
|
|
108
|
-
mimeType
|
|
109
|
-
height
|
|
110
|
-
width
|
|
111
|
-
size
|
|
112
|
-
url
|
|
113
|
-
refType
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
fragment Threads on PostThread {
|
|
2
|
-
id
|
|
3
|
-
channel {
|
|
4
|
-
id
|
|
5
|
-
title
|
|
6
|
-
description
|
|
7
|
-
topic
|
|
8
|
-
orgName
|
|
9
|
-
displayName
|
|
10
|
-
createdAt
|
|
11
|
-
purpose
|
|
12
|
-
type
|
|
13
|
-
updatedAt
|
|
14
|
-
}
|
|
15
|
-
post {
|
|
16
|
-
...PostWithoutReplies
|
|
17
|
-
}
|
|
18
|
-
replyCount
|
|
19
|
-
lastReplyAt
|
|
20
|
-
createdAt
|
|
21
|
-
deletedAt
|
|
22
|
-
updatedAt
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
fragment PostThread on PostThread {
|
|
26
|
-
...Threads
|
|
27
|
-
# id
|
|
28
|
-
# channel {
|
|
29
|
-
# id
|
|
30
|
-
# title
|
|
31
|
-
# description
|
|
32
|
-
# topic
|
|
33
|
-
# orgName
|
|
34
|
-
# displayName
|
|
35
|
-
# createdAt
|
|
36
|
-
# purpose
|
|
37
|
-
# type
|
|
38
|
-
# updatedAt
|
|
39
|
-
# }
|
|
40
|
-
# post {
|
|
41
|
-
# ...Post
|
|
42
|
-
# }
|
|
43
|
-
replies {
|
|
44
|
-
...PostWithoutReplies
|
|
45
|
-
}
|
|
46
|
-
# replyCount
|
|
47
|
-
# lastReplyAt
|
|
48
|
-
# createdAt
|
|
49
|
-
# deletedAt
|
|
50
|
-
# updatedAt
|
|
51
|
-
participants {
|
|
52
|
-
id
|
|
53
|
-
user {
|
|
54
|
-
...MessengerUser
|
|
55
|
-
}
|
|
56
|
-
# ...MessengerUser
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
fragment ThreadMessageSent on ThreadMessageSent {
|
|
61
|
-
lastMessage{
|
|
62
|
-
...PostWithoutReplies
|
|
63
|
-
}
|
|
64
|
-
data {
|
|
65
|
-
...PostThread
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
fragment PostThreadWithoutReplies on PostThread {
|
|
70
|
-
...Threads
|
|
71
|
-
participants {
|
|
72
|
-
id
|
|
73
|
-
user {
|
|
74
|
-
...MessengerUser
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ClientCacheTypeNames } from 'common';
|
|
2
|
-
|
|
3
|
-
export const dataIdFromObject = {
|
|
4
|
-
[ClientCacheTypeNames.Post]: ({ id }) => `${ClientCacheTypeNames.Post}:${id}`,
|
|
5
|
-
[ClientCacheTypeNames.Channel]: ({ id }) => `${ClientCacheTypeNames.Channel}:${id}`,
|
|
6
|
-
[ClientCacheTypeNames.ChannelMember]: ({ id }) => `${ClientCacheTypeNames.ChannelMember}:${id}`,
|
|
7
|
-
[ClientCacheTypeNames.UserAccount]: ({ id }) => `${ClientCacheTypeNames.UserAccount}:${id}`,
|
|
8
|
-
};
|
package/src/graphql/index.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { merge } from 'lodash-es';
|
|
2
|
-
import {
|
|
3
|
-
postPolicies,
|
|
4
|
-
userPolicies,
|
|
5
|
-
channelPolicies,
|
|
6
|
-
userAccountPolicies,
|
|
7
|
-
messagesPolicies,
|
|
8
|
-
postThreadPolicies,
|
|
9
|
-
teamPolicies,
|
|
10
|
-
} from './policies';
|
|
11
|
-
import { schema } from './schema';
|
|
12
|
-
|
|
13
|
-
const typePolicies = merge(
|
|
14
|
-
{},
|
|
15
|
-
postPolicies,
|
|
16
|
-
userPolicies,
|
|
17
|
-
channelPolicies,
|
|
18
|
-
userAccountPolicies,
|
|
19
|
-
messagesPolicies,
|
|
20
|
-
postThreadPolicies,
|
|
21
|
-
teamPolicies,
|
|
22
|
-
);
|
|
23
|
-
export { schema, typePolicies };
|
|
24
|
-
export * from './id-generation';
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
mutation AddChannel($name:String!, $description:String!, $type: RoomType, $team: String){
|
|
2
|
-
createChannel(
|
|
3
|
-
name:$name,
|
|
4
|
-
description:$description,
|
|
5
|
-
type: $type,
|
|
6
|
-
team: $team
|
|
7
|
-
){
|
|
8
|
-
id
|
|
9
|
-
title
|
|
10
|
-
type
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
mutation AddDirectChannel($receiver:[ID]!, $displayName:String!, $channelOptions: AnyObject){
|
|
15
|
-
createDirectChannel(
|
|
16
|
-
receiver: $receiver
|
|
17
|
-
displayName: $displayName
|
|
18
|
-
channelOptions: $channelOptions
|
|
19
|
-
){
|
|
20
|
-
id
|
|
21
|
-
displayName
|
|
22
|
-
title
|
|
23
|
-
type
|
|
24
|
-
members{
|
|
25
|
-
id
|
|
26
|
-
user{
|
|
27
|
-
...MinimalUser
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
mutation AddMemberToChannel($channelId:String!, $memberId:String!){
|
|
34
|
-
addMemberToChannel(
|
|
35
|
-
channelId: $channelId,
|
|
36
|
-
memberId: $memberId
|
|
37
|
-
){
|
|
38
|
-
id
|
|
39
|
-
displayName
|
|
40
|
-
title
|
|
41
|
-
type
|
|
42
|
-
members{
|
|
43
|
-
id
|
|
44
|
-
user{
|
|
45
|
-
...MinimalUser
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
mutation saveMembersToChannel($membersIds:[String]!,$channelId:String!){
|
|
52
|
-
saveMembersToChannel(
|
|
53
|
-
membersIds: $membersIds
|
|
54
|
-
channelId: $channelId,
|
|
55
|
-
){
|
|
56
|
-
id
|
|
57
|
-
displayName
|
|
58
|
-
title
|
|
59
|
-
type
|
|
60
|
-
members{
|
|
61
|
-
id
|
|
62
|
-
user{
|
|
63
|
-
...MinimalUser
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
mutation DeleteChannel($ChannelId:ID!){
|
|
71
|
-
deleteChannel(id: $ChannelId)
|
|
72
|
-
}
|