@amityco/ts-sdk 6.3.1 → 6.3.2-0b0b67f.0
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/dist/@types/domains/channel.d.ts +1 -1
- package/dist/@types/domains/channel.d.ts.map +1 -1
- package/dist/@types/domains/user.d.ts +1 -0
- package/dist/@types/domains/user.d.ts.map +1 -1
- package/dist/channelRepsitory/channelMembership/observers/getMembers.d.ts.map +1 -1
- package/dist/client/api/logout.d.ts.map +1 -1
- package/dist/client/api/setSessionState.d.ts.map +1 -1
- package/dist/commentRepository/api/deleteComment.d.ts.map +1 -1
- package/dist/commentRepository/api/flagComment.d.ts +14 -0
- package/dist/commentRepository/api/flagComment.d.ts.map +1 -0
- package/dist/commentRepository/api/hardDeleteComment.d.ts +16 -0
- package/dist/commentRepository/api/hardDeleteComment.d.ts.map +1 -0
- package/dist/commentRepository/api/index.d.ts +5 -0
- package/dist/commentRepository/api/index.d.ts.map +1 -1
- package/dist/commentRepository/api/isCommentFlaggedByMe.d.ts +14 -0
- package/dist/commentRepository/api/isCommentFlaggedByMe.d.ts.map +1 -0
- package/dist/commentRepository/api/softDeleteComment.d.ts +16 -0
- package/dist/commentRepository/api/softDeleteComment.d.ts.map +1 -0
- package/dist/commentRepository/api/tests/deleteComment.test.d.ts +2 -0
- package/dist/commentRepository/api/tests/deleteComment.test.d.ts.map +1 -0
- package/dist/commentRepository/api/tests/hardDeleteComment.test.d.ts +2 -0
- package/dist/commentRepository/api/tests/hardDeleteComment.test.d.ts.map +1 -0
- package/dist/commentRepository/api/tests/softDeleteComment.test.d.ts +2 -0
- package/dist/commentRepository/api/tests/softDeleteComment.test.d.ts.map +1 -0
- package/dist/commentRepository/api/unflagComment.d.ts +14 -0
- package/dist/commentRepository/api/unflagComment.d.ts.map +1 -0
- package/dist/communityRepository/communityMembership/observers/getMembers.d.ts.map +1 -1
- package/dist/core/model/index.d.ts +1 -1
- package/dist/core/model/index.d.ts.map +1 -1
- package/dist/core/transports/mqtt.d.ts.map +1 -1
- package/dist/index.cjs.js +317 -91
- package/dist/index.esm.js +317 -91
- package/dist/index.umd.js +4 -4
- package/dist/report/api/createReport.d.ts.map +1 -1
- package/dist/report/api/deleteReport.d.ts.map +1 -1
- package/dist/report/api/isReportedByMe.d.ts.map +1 -1
- package/dist/userRepository/observers/getUsers.d.ts.map +1 -1
- package/dist/userRepository/observers/index.d.ts +1 -0
- package/dist/userRepository/observers/index.d.ts.map +1 -1
- package/dist/userRepository/observers/searchUserByDisplayName.d.ts +19 -0
- package/dist/userRepository/observers/searchUserByDisplayName.d.ts.map +1 -0
- package/dist/userRepository/observers/tests/searchUserByDisplayName.test.d.ts +2 -0
- package/dist/userRepository/observers/tests/searchUserByDisplayName.test.d.ts.map +1 -0
- package/dist/utils/isEqual.d.ts +17 -0
- package/dist/utils/isEqual.d.ts.map +1 -0
- package/dist/utils/liveObject.d.ts.map +1 -1
- package/dist/utils/tests/isEquals.test.d.ts +2 -0
- package/dist/utils/tests/isEquals.test.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/@types/domains/channel.ts +1 -1
- package/src/@types/domains/user.ts +2 -0
- package/src/channelRepsitory/channelMembership/observers/getMembers.ts +17 -15
- package/src/channelRepsitory/channelMembership/observers/tests/getMembers.test.ts +0 -62
- package/src/channelRepsitory/channelMembership/observers/tests/searchMembers.test.ts +0 -31
- package/src/client/api/logout.ts +13 -10
- package/src/client/api/setSessionState.ts +7 -2
- package/src/commentRepository/api/deleteComment.ts +0 -1
- package/src/commentRepository/api/flagComment.ts +37 -0
- package/src/commentRepository/api/hardDeleteComment.ts +32 -0
- package/src/commentRepository/api/index.ts +7 -0
- package/src/commentRepository/api/isCommentFlaggedByMe.ts +35 -0
- package/src/commentRepository/api/softDeleteComment.ts +32 -0
- package/src/commentRepository/api/tests/deleteComment.test.ts +60 -0
- package/src/commentRepository/api/tests/hardDeleteComment.test.ts +52 -0
- package/src/commentRepository/api/tests/softDeleteComment.test.ts +52 -0
- package/src/commentRepository/api/unflagComment.ts +38 -0
- package/src/communityRepository/communityMembership/observers/getMembers.ts +14 -10
- package/src/communityRepository/communityMembership/observers/tests/getMembers.test.ts +1 -27
- package/src/core/model/index.ts +2 -11
- package/src/core/transports/mqtt.ts +14 -24
- package/src/messageRepository/observers/getMessages.ts +1 -1
- package/src/report/api/createReport.ts +0 -4
- package/src/report/api/deleteReport.ts +0 -4
- package/src/report/api/isReportedByMe.ts +0 -4
- package/src/userRepository/observers/getUsers.ts +18 -11
- package/src/userRepository/observers/index.ts +1 -0
- package/src/userRepository/observers/searchUserByDisplayName.ts +30 -0
- package/src/userRepository/observers/tests/getUsers.test.ts +1 -29
- package/src/userRepository/observers/tests/searchUserByDisplayName.test.ts +113 -0
- package/src/utils/isEqual.ts +69 -0
- package/src/utils/liveObject.ts +21 -2
- package/src/utils/tests/isEquals.test.ts +86 -0
|
@@ -54,7 +54,7 @@ declare global {
|
|
|
54
54
|
page?: Amity.Page;
|
|
55
55
|
};
|
|
56
56
|
type SearchChannelMembers = Amity.LiveCollectionParams<Omit<QueryChannelMembers, 'sortBy'>>;
|
|
57
|
-
type ChannelMembersLiveCollection = Amity.LiveCollectionParams<Omit<QueryChannelMembers, 'page'>>;
|
|
57
|
+
type ChannelMembersLiveCollection = Amity.LiveCollectionParams<Omit<QueryChannelMembers, 'page' | 'search'>>;
|
|
58
58
|
type ChannelMembersLiveCollectionCache = Amity.LiveCollectionCache<Amity.Membership<'channel'>['userId'], Pick<QueryChannelMembers, 'page'>>;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,KAAK,WAAW,GAAG,WAAW,GAAG,cAAc,GAAG,WAAW,GAAG,MAAM,CAAC;QAEv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Params<Omit<QueryUsers, 'page'>>;
|
|
20
|
+
type UserSearchLiveCollection = Amity.LiveCollectionParams<Omit<QueryUsers, 'sortBy'>>;
|
|
20
21
|
type UserLiveCollectionCache = Amity.LiveCollectionCache<Amity.User['userId'], Pick<QueryUsers, 'page'>>;
|
|
21
22
|
}
|
|
22
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,KAAK,cAAc,GACf,SAAS,GACT,UAAU,GACV,UAAU,GACV,WAAW,GACX,aAAa,GACb,eAAe,CAAC;QAEpB,KAAK,IAAI,GAAG;YACV,GAAG,EAAE,MAAM,CAAC;YACZ,MAAM,EAAE,MAAM,CAAC;YACf,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,YAAY,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC;YAC7C,eAAe,CAAC,EAAE,MAAM,CAAC;YACzB,WAAW,CAAC,EAAE,MAAM,CAAC;SACtB,GAAG,KAAK,CAAC,QAAQ,GAChB,KAAK,CAAC,QAAQ,GACd,KAAK,CAAC,SAAS,GACf,KAAK,CAAC,UAAU,GAChB,KAAK,CAAC,UAAU,GAChB,KAAK,CAAC,UAAU,GAChB,KAAK,CAAC,YAAY,CAAC;QAErB,KAAK,UAAU,GAAG;YAChB,WAAW,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YACxC,MAAM,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;YAC3B,MAAM,CAAC,EAAE,aAAa,GAAG,cAAc,GAAG,aAAa,CAAC;YACxD,IAAI,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC;SACnB,CAAC;QAEF,KAAK,kBAAkB,GAAG,KAAK,CAAC,o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AAC,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;QAE/E,KAAK,wBAAwB,GAAG,KAAK,CAAC,oBAAoB,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;QAEvF,KAAK,uBAAuB,GAAG,KAAK,CAAC,mBAAmB,CACtD,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,EACpB,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CACzB,CAAC;KACH;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMembers.d.ts","sourceRoot":"","sources":["../../../../src/channelRepsitory/channelMembership/observers/getMembers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getMembers.d.ts","sourceRoot":"","sources":["../../../../src/channelRepsitory/channelMembership/observers/getMembers.ts"],"names":[],"mappings":"AA8BA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,UAAU,WACb,MAAM,4BAA4B,YAChC,MAAM,sBAAsB,CAAC,MAAM,UAAU,CAAC,SAAS,CAAC,CAAC,WAC1D,MAAM,oBAAoB,eA8IpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout.d.ts","sourceRoot":"","sources":["../../../src/client/api/logout.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,MAAM,QAAa,QAAQ,OAAO,
|
|
1
|
+
{"version":3,"file":"logout.d.ts","sourceRoot":"","sources":["../../../src/client/api/logout.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,MAAM,QAAa,QAAQ,OAAO,CA6C9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setSessionState.d.ts","sourceRoot":"","sources":["../../../src/client/api/setSessionState.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"setSessionState.d.ts","sourceRoot":"","sources":["../../../src/client/api/setSessionState.ts"],"names":[],"mappings":"AAkCA,eAAO,MAAM,kBAAkB,cAClB,MAAM,aAAa,aACnB,MAAM,aAAa,KAC7B,OAEF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,UAAW,MAAM,aAAa,KAAG,OA6B5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteComment.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/api/deleteComment.ts"],"names":[],"mappings":"AAcA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,cACb,aAAa,CAAC,WAAW,CAAC,0BAEpC,QAAQ,aAAa,
|
|
1
|
+
{"version":3,"file":"deleteComment.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/api/deleteComment.ts"],"names":[],"mappings":"AAcA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,cACb,aAAa,CAAC,WAAW,CAAC,0BAEpC,QAAQ,aAAa,CA+CvB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { CommentRepository } from '@amityco/ts-sdk'
|
|
4
|
+
* const flagged = await CommentRepository.flagComment('commentId')
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* @param commentId The ID of the comment to flag
|
|
8
|
+
* @returns the created report result
|
|
9
|
+
*
|
|
10
|
+
* @category Comment API
|
|
11
|
+
* @async
|
|
12
|
+
* */
|
|
13
|
+
export declare const flagComment: (commentId: Amity.Comment['commentId']) => Promise<boolean>;
|
|
14
|
+
//# sourceMappingURL=flagComment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flagComment.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/api/flagComment.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;KAWK;AACL,eAAO,MAAM,WAAW,cAAqB,aAAa,CAAC,WAAW,CAAC,KAAG,QAAQ,OAAO,CAexF,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { CommentRepository } from '@amityco/ts-sdk'
|
|
4
|
+
* const success = await CommentRepository.hardDeleteComment('foobar')
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Deletes a {@link Amity.Comment}
|
|
8
|
+
*
|
|
9
|
+
* @param commentId The {@link Amity.Comment} ID to delete
|
|
10
|
+
* @return A success boolean if the {@link Amity.Comment} was deleted
|
|
11
|
+
*
|
|
12
|
+
* @category Comment API
|
|
13
|
+
* @async
|
|
14
|
+
*/
|
|
15
|
+
export declare const hardDeleteComment: (commentId: Amity.Comment['commentId']) => Promise<Amity.Comment>;
|
|
16
|
+
//# sourceMappingURL=hardDeleteComment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hardDeleteComment.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/api/hardDeleteComment.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB,cACjB,aAAa,CAAC,WAAW,CAAC,KACpC,QAAQ,aAAa,CAOvB,CAAC"}
|
|
@@ -2,4 +2,9 @@ export * from './getCommentByIds';
|
|
|
2
2
|
export * from './createComment';
|
|
3
3
|
export * from './updateComment';
|
|
4
4
|
export * from './deleteComment';
|
|
5
|
+
export * from './softDeleteComment';
|
|
6
|
+
export * from './hardDeleteComment';
|
|
7
|
+
export * from './flagComment';
|
|
8
|
+
export * from './unflagComment';
|
|
9
|
+
export * from './isCommentFlaggedByMe';
|
|
5
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAElC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAElC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAEhC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { CommentRepository } from '@amityco/ts-sdk'
|
|
4
|
+
* const isReported = await CommentRepository.isCommentFlaggedByMe('commentId')
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* @param commentId The ID of the comment to check if flagged by current user
|
|
8
|
+
* @returns `true` if the comment is flagged by me, `false` if doesn't.
|
|
9
|
+
*
|
|
10
|
+
* @category Comment API
|
|
11
|
+
* @async
|
|
12
|
+
* */
|
|
13
|
+
export declare const isCommentFlaggedByMe: (commentId: Amity.Comment['commentId']) => Promise<boolean>;
|
|
14
|
+
//# sourceMappingURL=isCommentFlaggedByMe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isCommentFlaggedByMe.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/api/isCommentFlaggedByMe.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;KAWK;AACL,eAAO,MAAM,oBAAoB,cACpB,aAAa,CAAC,WAAW,CAAC,KACpC,QAAQ,OAAO,CAajB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { CommentRepository } from '@amityco/ts-sdk'
|
|
4
|
+
* const success = await CommentRepository.softDeleteComment('foobar')
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Deletes a {@link Amity.Comment}
|
|
8
|
+
*
|
|
9
|
+
* @param commentId The {@link Amity.Comment} ID to delete
|
|
10
|
+
* @return A success boolean if the {@link Amity.Comment} was deleted
|
|
11
|
+
*
|
|
12
|
+
* @category Comment API
|
|
13
|
+
* @async
|
|
14
|
+
*/
|
|
15
|
+
export declare const softDeleteComment: (commentId: Amity.Comment['commentId']) => Promise<Amity.Comment>;
|
|
16
|
+
//# sourceMappingURL=softDeleteComment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"softDeleteComment.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/api/softDeleteComment.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB,cACjB,aAAa,CAAC,WAAW,CAAC,KACpC,QAAQ,aAAa,CAOvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteComment.test.d.ts","sourceRoot":"","sources":["../../../../src/commentRepository/api/tests/deleteComment.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hardDeleteComment.test.d.ts","sourceRoot":"","sources":["../../../../src/commentRepository/api/tests/hardDeleteComment.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"softDeleteComment.test.d.ts","sourceRoot":"","sources":["../../../../src/commentRepository/api/tests/softDeleteComment.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { CommentRepository } from '@amityco/ts-sdk'
|
|
4
|
+
* const unflagged = await CommentRepository.unflagComment('commentId')
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* @param commentId The ID of comment to unflag
|
|
8
|
+
* @returns the unflagged result
|
|
9
|
+
*
|
|
10
|
+
* @category Comment API
|
|
11
|
+
* @async
|
|
12
|
+
* */
|
|
13
|
+
export declare const unflagComment: (commentId: Amity.Comment['commentId']) => Promise<boolean>;
|
|
14
|
+
//# sourceMappingURL=unflagComment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unflagComment.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/api/unflagComment.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;KAWK;AACL,eAAO,MAAM,aAAa,cAAqB,aAAa,CAAC,WAAW,CAAC,KAAG,QAAQ,OAAO,CAe1F,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMembers.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/observers/getMembers.ts"],"names":[],"mappings":"AAgCA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,UAAU,WACb,MAAM,6BAA6B,YACjC,MAAM,sBAAsB,CAAC,MAAM,UAAU,CAAC,WAAW,CAAC,CAAC,WAC5D,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"getMembers.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/observers/getMembers.ts"],"names":[],"mappings":"AAgCA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,UAAU,WACb,MAAM,6BAA6B,YACjC,MAAM,sBAAsB,CAAC,MAAM,UAAU,CAAC,WAAW,CAAC,CAAC,WAC5D,MAAM,oBAAoB,eAkIpC,CAAC"}
|
|
@@ -6,7 +6,7 @@ export * from './identifyModel';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const PAYLOAD2MODEL: Record<string, Amity.Domain>;
|
|
8
8
|
/** hidden */
|
|
9
|
-
export declare const hasUpdates: <T extends Amity.
|
|
9
|
+
export declare const hasUpdates: <T extends Amity.UpdatedAt>(prevData: T, nextData: T) => boolean;
|
|
10
10
|
/** hidden */
|
|
11
11
|
export declare function getFutureDate(date?: string | undefined): string;
|
|
12
12
|
/** hidden */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAEhC;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CA+BtD,CAAC;AAEF,aAAa;AACb,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAEhC;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CA+BtD,CAAC;AAEF,aAAa;AACb,eAAO,MAAM,UAAU,2DAA0D,OAEhF,CAAC;AAEF,aAAa;AACb,wBAAgB,aAAa,CAAC,IAAI,GAAE,MAAM,GAAG,SAAoC,GAAG,MAAM,CAEzF;AAED,aAAa;AACb,wBAAgB,WAAW,CAAC,IAAI,GAAE,MAAM,GAAG,SAAoC,GAAG,MAAM,CAEvF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mqtt.d.ts","sourceRoot":"","sources":["../../../src/core/transports/mqtt.ts"],"names":[],"mappings":"AAEA,OAAa,EAAE,cAAc,EAAsB,UAAU,EAAE,MAAM,gBAAgB,CAAC;AActF,wBAAgB,cAAc,CAAC,MAAM,EAAE;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,cAAc,CAiBjB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,aAAc,MAAM,KAAG,
|
|
1
|
+
{"version":3,"file":"mqtt.d.ts","sourceRoot":"","sources":["../../../src/core/transports/mqtt.ts"],"names":[],"mappings":"AAEA,OAAa,EAAE,cAAc,EAAsB,UAAU,EAAE,MAAM,gBAAgB,CAAC;AActF,wBAAgB,cAAc,CAAC,MAAM,EAAE;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,cAAc,CAiBjB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,aAAc,MAAM,KAAG,gBAuGtD,CAAC"}
|