@livepreso/api 6.48.0 → 6.48.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.
- package/.rush/temp/package-deps_build.json +24 -24
- package/.rush/temp/shrinkwrap-deps.json +3 -3
- package/CHANGELOG.json +12 -0
- package/CHANGELOG.md +8 -1
- package/api.build.log +2 -2
- package/cjs/models/manifest-json.js +10 -0
- package/cjs/models/manifest-json.js.map +1 -1
- package/cjs/models/user.js +5 -1
- package/cjs/models/user.js.map +1 -1
- package/package.json +1 -1
- package/src/models/manifest-json.js +11 -0
- package/src/models/user.js +5 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"files": {
|
|
3
|
-
"modules/api/.rush/temp/shrinkwrap-deps.json": "
|
|
3
|
+
"modules/api/.rush/temp/shrinkwrap-deps.json": "5c8b0aa31f8ad2a37763d02137c071bb4e1c2521",
|
|
4
4
|
"modules/api/.eslintrc.js": "a9325f85f01fb051f78549038c43cfb83ee96b90",
|
|
5
5
|
"modules/api/.gitignore": "0f5447f79c2a1562c9ef7f89bfcbc0bfd464979f",
|
|
6
6
|
"modules/api/.gitlab-ci.yml": "c8ea3c1a76db6d89e41afa8c42e96ceb5578a961",
|
|
7
7
|
"modules/api/.husky/.gitignore": "31354ec1389994b5f6708c7d915fdcc6bb76ba6e",
|
|
8
8
|
"modules/api/.husky/pre-commit": "36af219892fda8ea669cd4b6725cd7b892231967",
|
|
9
|
-
"modules/api/CHANGELOG.json": "
|
|
10
|
-
"modules/api/CHANGELOG.md": "
|
|
9
|
+
"modules/api/CHANGELOG.json": "342749140a6776d3957f34ac688f6e363c457beb",
|
|
10
|
+
"modules/api/CHANGELOG.md": "262498a27c36aa3595d58902cfb049496bdd6f1f",
|
|
11
11
|
"modules/api/README.md": "7974bb11bba4378faccb7dcddb88b20cd8f1a94c",
|
|
12
12
|
"modules/api/babel.config.js": "d79af6ab5b63b449aa19d1229df1def3bd194dfd",
|
|
13
13
|
"modules/api/bin/test.sh": "28b784dae8bcf12a584e93aca3e7f6c932a1d3a8",
|
|
@@ -15,21 +15,20 @@
|
|
|
15
15
|
"modules/api/index.js": "d7900e11dfff9acca7d3bfc19a8cfa4408833e19",
|
|
16
16
|
"modules/api/jest.config.js": "52c0810f84aed86d3e62dc4b95dc3f440fa05253",
|
|
17
17
|
"modules/api/mocha.opts": "33e6ba2ea1db0e7397b9c6ac9339f5f8657c3e99",
|
|
18
|
-
"modules/api/package.json": "
|
|
18
|
+
"modules/api/package.json": "bd75872f7210a59b67bacc2c41187fe3e3e1b562",
|
|
19
19
|
"modules/api/setup-tests.js": "16e32752834050e369b9ced87b178e520806a87f",
|
|
20
20
|
"modules/api/src/api.js": "21ee077b2fde0bd605933fd203c9b2190d947393",
|
|
21
21
|
"modules/api/src/api.spec.js": "a9d30ed36f594f616601fe1b242c68440dff40df",
|
|
22
22
|
"modules/api/src/auth.js": "5032ada348fb919e88272af228214a39971bbbd3",
|
|
23
23
|
"modules/api/src/auth.spec.js": "ebd302b60032cacebac16a8d25ad09ee4bc98f92",
|
|
24
24
|
"modules/api/src/caching.js": "6582f01cc373c502f6fec49116b0efcdb4bb647d",
|
|
25
|
-
"modules/api/src/collections.js": "
|
|
25
|
+
"modules/api/src/collections.js": "3875de63f9159911945c9c1116a4540cf6e8fe3d",
|
|
26
26
|
"modules/api/src/collections/activity.js": "c6076b1cca55bc244bf2290e54c8e580e5295329",
|
|
27
27
|
"modules/api/src/collections/adjunct-sections.js": "5f0d390b4cfdd30d0245a1c032b06dc80668bfed",
|
|
28
28
|
"modules/api/src/collections/adjunct-slides.js": "f82de8cb59a77e02836aa04b8c3f7ada67f0319a",
|
|
29
29
|
"modules/api/src/collections/adjunct-sub-slides.js": "d2628ba16bf0708abadbc408ba6e175ad3d88d81",
|
|
30
30
|
"modules/api/src/collections/appointment-adjunct-tags.js": "8d61b61a8bdd1088406ca31170a1f9f963608a2c",
|
|
31
31
|
"modules/api/src/collections/appointment-deckversion-tags.js": "4de75e496e89bde5ae1bb58566a0e87069ede4b2",
|
|
32
|
-
"modules/api/src/collections/appointment-duplicates.js": "5f4074084d8759040b0d5b68b9b8f5bf82f26369",
|
|
33
32
|
"modules/api/src/collections/appointment-editors.js": "ce45091f5f5288f2b0db803af535a9f5c15d9f58",
|
|
34
33
|
"modules/api/src/collections/appointment-section-tags.js": "59b07ab2e55cf28e6f863e42d2adda81d08ee3f1",
|
|
35
34
|
"modules/api/src/collections/appointment-slide-tags.js": "e6e3c84a366f0868cf1b2ce8914364ab8968f1c1",
|
|
@@ -50,7 +49,7 @@
|
|
|
50
49
|
"modules/api/src/collections/deck-versions.js": "6914538addc83b98be29f2317c1c8441f4ad4496",
|
|
51
50
|
"modules/api/src/collections/decks.js": "1b7082dd20084b0860216e34b9940e8435864f03",
|
|
52
51
|
"modules/api/src/collections/deleted-assets.js": "221a7516091d81e43cf30dcc10ad5bbf5eb19292",
|
|
53
|
-
"modules/api/src/collections/dispatches.js": "
|
|
52
|
+
"modules/api/src/collections/dispatches.js": "cce349d1749ad6fed64b4cde02c89787c8b0d2f5",
|
|
54
53
|
"modules/api/src/collections/event-objects.js": "13a8ec2666cfe6b055a0b1edea8b16d08191bebf",
|
|
55
54
|
"modules/api/src/collections/events.js": "18c2aab7a9e33b2eef624f4966d28b178c345eda",
|
|
56
55
|
"modules/api/src/collections/groups.js": "ec329ac97e012ef0e3b81bfb3d3f364375d81017",
|
|
@@ -63,6 +62,7 @@
|
|
|
63
62
|
"modules/api/src/collections/section-selections.js": "2d4f24822aa9a279b071e15877f41c30d68b73ea",
|
|
64
63
|
"modules/api/src/collections/sections.js": "797309aef62e40953b85a8bce3cd749b9fa591c6",
|
|
65
64
|
"modules/api/src/collections/signers.js": "2b0fc90e6fb544e8d2d6af22744fb037c6f7674b",
|
|
65
|
+
"modules/api/src/collections/signing-backends.js": "78888f4688777eac2d7e21fd8a7d7fdfd6bce11e",
|
|
66
66
|
"modules/api/src/collections/signing-requests.js": "c89ff8aa91b38d97ebaf2c1c7a045ad028268ff6",
|
|
67
67
|
"modules/api/src/collections/slide-selections.js": "bda3676b5356b0fc0bbdc544b48b542b33560ed5",
|
|
68
68
|
"modules/api/src/collections/slides.js": "2034263b15814d1117a092427bcde39f01b8a636",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"modules/api/src/middlewares/base.js": "2b3e393809401198be0d6e81618bcd89db2a1c59",
|
|
82
82
|
"modules/api/src/middlewares/json.js": "3f1a0219087de4730a6eda75b5ff333a74f1d6a5",
|
|
83
83
|
"modules/api/src/middlewares/redirect.js": "68153e042826951f38c83a0da16a692135cceb83",
|
|
84
|
-
"modules/api/src/models.js": "
|
|
85
|
-
"modules/api/src/models/activity-item.js": "
|
|
84
|
+
"modules/api/src/models.js": "8bccb2fbbd7d75888e957f85dd96dac7e0dda30c",
|
|
85
|
+
"modules/api/src/models/activity-item.js": "aa0d87239f6183c21b35207b5b11c6a3c239b058",
|
|
86
86
|
"modules/api/src/models/adjunct-section.js": "f00f5ecb3d011822ceeb4de0bc0a2de6179ba4b7",
|
|
87
87
|
"modules/api/src/models/adjunct-slide.js": "56983f0b2a40683d4801d7d931008db536722919",
|
|
88
88
|
"modules/api/src/models/adjunct-sub-slide.js": "3659582b7e0b052eee2698bc6085b0142518773a",
|
|
@@ -90,7 +90,6 @@
|
|
|
90
90
|
"modules/api/src/models/api.js": "ff66a1e1a42083d669e9037e1787ac7c12e7318e",
|
|
91
91
|
"modules/api/src/models/appointment-adjunct-tags.js": "6f34d561f608bae351699b397dcecd80d3aa6ae6",
|
|
92
92
|
"modules/api/src/models/appointment-deckversion-tags.js": "48ab3c0e3d16d29cd30ff7bba251073a2388b03f",
|
|
93
|
-
"modules/api/src/models/appointment-duplicate.js": "63d0c71ad971942fbc34e376299531305a38c800",
|
|
94
93
|
"modules/api/src/models/appointment-editor.js": "ed9f7531cfd6d01fbf370cb8f392cd5ec366af02",
|
|
95
94
|
"modules/api/src/models/appointment-section-tags.js": "3ac4428c04f173a8aab47557369854da8d31c8de",
|
|
96
95
|
"modules/api/src/models/appointment-slide-tags.js": "578b47bb8be70859992576d6d061d71a127fca94",
|
|
@@ -102,7 +101,7 @@
|
|
|
102
101
|
"modules/api/src/models/asset.js": "6698368fa65e8672485e551d948a34885135c489",
|
|
103
102
|
"modules/api/src/models/auto-adjunct-key-check.js": "eaecd2d50d626f4dedac346a76eefa2714f64f34",
|
|
104
103
|
"modules/api/src/models/auto-adjunct.js": "b64eab4f95b946d68256d8d8a4ca7be9bbbd0207",
|
|
105
|
-
"modules/api/src/models/base.js": "
|
|
104
|
+
"modules/api/src/models/base.js": "da1cfc4cd5ac767a70870e148d381a84f53a23f1",
|
|
106
105
|
"modules/api/src/models/base.spec.js": "f93cddb6ce982573052f43e5b7d22d4d7d3e41ca",
|
|
107
106
|
"modules/api/src/models/choicelist.js": "294c908f509a37e86e612ccd456c1c4b3f472cff",
|
|
108
107
|
"modules/api/src/models/cms-val.js": "eb0a5c94016dd94fad28ad56e5eed0865d24667b",
|
|
@@ -111,12 +110,12 @@
|
|
|
111
110
|
"modules/api/src/models/contact.js": "f770da24e2cab94e412b25401644b08af13f2315",
|
|
112
111
|
"modules/api/src/models/customer.js": "fdce7fb9cb75cf3e00777a3f6f78c41a6fd95a08",
|
|
113
112
|
"modules/api/src/models/deck-note.js": "f2825ffd6f42f1c1e56962bf0d2a6ded2f7174c0",
|
|
114
|
-
"modules/api/src/models/deck-tags.js": "
|
|
113
|
+
"modules/api/src/models/deck-tags.js": "d0122cb9aee76127ae1f03264982fa9495ee432c",
|
|
115
114
|
"modules/api/src/models/deck-version-screenshot.js": "8ff8406419bddf6cf24230340edd8a604a6bd24f",
|
|
116
|
-
"modules/api/src/models/deck-version.js": "
|
|
115
|
+
"modules/api/src/models/deck-version.js": "efdc0e4c29c87fde56b23fbb629dc507c87c79be",
|
|
117
116
|
"modules/api/src/models/deck.js": "ed9f83951b1787a065171783b033e03f1698b142",
|
|
118
117
|
"modules/api/src/models/dispatch-preview.js": "27ca131aac1d6069329d3c4afec6c794a7c514cc",
|
|
119
|
-
"modules/api/src/models/dispatch.js": "
|
|
118
|
+
"modules/api/src/models/dispatch.js": "f20a2ad58cb3701356d150baa9599b5d73ec505d",
|
|
120
119
|
"modules/api/src/models/envs.js": "21e4f947067c89dd5c8e4e50ca69834581afcfd2",
|
|
121
120
|
"modules/api/src/models/event-object.js": "5ac9d07b485d21deef25aaae7e9be031d3b0967d",
|
|
122
121
|
"modules/api/src/models/event.js": "0330db27741083c066373da56c2fe024dda5e1b1",
|
|
@@ -124,25 +123,26 @@
|
|
|
124
123
|
"modules/api/src/models/file.js": "dbae7b5a1ab81d19652dd51a2c546eadee8db948",
|
|
125
124
|
"modules/api/src/models/group.js": "b4de18740e483e47942fcc26ca20d00e0c99bb22",
|
|
126
125
|
"modules/api/src/models/handover.js": "cbae12f03c08e38165bfdc748497eb260c5f8553",
|
|
127
|
-
"modules/api/src/models/hosted-preso.js": "
|
|
126
|
+
"modules/api/src/models/hosted-preso.js": "49d320fbd80b2238df46baaaef8963f94b040012",
|
|
128
127
|
"modules/api/src/models/image.js": "33e76f12ae465f9cbea84ee265e9d30af76416d6",
|
|
129
128
|
"modules/api/src/models/location.js": "1add45f18fb385ec27f4be0c0a324ac351b106d4",
|
|
130
|
-
"modules/api/src/models/manifest-json.js": "
|
|
129
|
+
"modules/api/src/models/manifest-json.js": "967f75b087602221477fbea4f655c98821aa745b",
|
|
131
130
|
"modules/api/src/models/onshare.js": "605c792a26eb2e3d4d4caf3483eefa9698d656e4",
|
|
132
131
|
"modules/api/src/models/opportunity.js": "23f5d114e4d974136eea750733c8ac834e5545ae",
|
|
133
132
|
"modules/api/src/models/pack-diff.js": "00d3fe89099d61bff9c5ba56eba5b45e41371148",
|
|
134
133
|
"modules/api/src/models/pack.js": "6ac776d642e2b6ca944c178207dcee381acacce8",
|
|
135
|
-
"modules/api/src/models/preset.js": "
|
|
136
|
-
"modules/api/src/models/refresh-request.js": "
|
|
134
|
+
"modules/api/src/models/preset.js": "db7a958b2de1968675d48454811895442f12b651",
|
|
135
|
+
"modules/api/src/models/refresh-request.js": "a56d8c02c22df3d9283033ffe26b2dd4a020c463",
|
|
137
136
|
"modules/api/src/models/room.js": "c0afadc136fd7b5c57c434264f1e019d339c4000",
|
|
138
137
|
"modules/api/src/models/salesforce-lookup.js": "ad07db52149fc5db6a5111874f94724f2d4d97f5",
|
|
139
138
|
"modules/api/src/models/section-selection.js": "2f640a3bb70a3636f6bdfa444da75ec029ca48da",
|
|
140
139
|
"modules/api/src/models/section.js": "8af095a56d8c1118806e7f0b829e8fc9b0ffd77e",
|
|
141
140
|
"modules/api/src/models/signer.js": "1f94b6f93f80a64437da695fe222f5ace7c55b8a",
|
|
142
|
-
"modules/api/src/models/signing-
|
|
141
|
+
"modules/api/src/models/signing-backend.js": "09961d923782fc1e11dc447c80de56c2b2f8c31d",
|
|
142
|
+
"modules/api/src/models/signing-request.js": "2d4846b0c057e5734f6a4b09066416bcdd1affbc",
|
|
143
143
|
"modules/api/src/models/slide-selection.js": "d5d6b9e5da69b00bcc1573a3300567ee0f440386",
|
|
144
144
|
"modules/api/src/models/slide.js": "2c6d3a40aa80366537fa278503a2af44852736de",
|
|
145
|
-
"modules/api/src/models/snapshot.js": "
|
|
145
|
+
"modules/api/src/models/snapshot.js": "199af68cb40f234375f4ef62398f6239879293eb",
|
|
146
146
|
"modules/api/src/models/snapshot.spec.js": "583eedfb79e5f6df31543598116cf2b15082fbf7",
|
|
147
147
|
"modules/api/src/models/sub-slide.js": "a27fee2928d848a4511a0dd0920705e1783b17f5",
|
|
148
148
|
"modules/api/src/models/support-ticket.js": "7f29e6489042d44b8b7b51ab3ae6c1ce7cb3fdc7",
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"modules/api/src/models/token.js": "29a7b9e73271e9faca389fd03754b450c51b4b33",
|
|
156
156
|
"modules/api/src/models/transcribe-socket.js": "eaa72b3be6db99293efd09fc8738a6fb32116c7a",
|
|
157
157
|
"modules/api/src/models/upload.js": "be0d26ad0392a259b271b4c87e2931527fb8dc70",
|
|
158
|
-
"modules/api/src/models/user.js": "
|
|
158
|
+
"modules/api/src/models/user.js": "9f574cec9d1957c81be8ec7fa9acb99741a14866",
|
|
159
159
|
"modules/api/src/models/user.spec.js": "7e6f3b8909fe7c0df9b281375ed301c73fbce7d1",
|
|
160
160
|
"modules/api/src/presentation.js": "42051579941c98eef6335b5178621da4aedcfe34",
|
|
161
161
|
"modules/api/src/presentation/appointment-presentation.js": "c76d8362f34344e8e4b68da7c05ec67289d65344",
|
|
@@ -166,13 +166,13 @@
|
|
|
166
166
|
"modules/api/src/presentation/presentation-deck.spec.js": "96a1f522fbc6d2f6ad90ff831e5c3f36ced5ef4e",
|
|
167
167
|
"modules/api/src/presentation/presentation-decks.js": "d22cc2d74886a55d6086e598e8ccb01aad0fcad4",
|
|
168
168
|
"modules/api/src/presentation/presentation-section.js": "8a83c0b01772f5a94635bc34e31f64905143d23c",
|
|
169
|
-
"modules/api/src/presentation/presentation-section.spec.js": "
|
|
169
|
+
"modules/api/src/presentation/presentation-section.spec.js": "ecbe0dd452befe11a03e2b461411b39e81a8d0f6",
|
|
170
170
|
"modules/api/src/presentation/presentation-sections.js": "7d8ae82b1b59899cc75d93bab6278d275594e367",
|
|
171
171
|
"modules/api/src/presentation/presentation-slide.js": "1ab44122b3f69ed8fe27081f974a6f4537e804b2",
|
|
172
|
-
"modules/api/src/presentation/presentation-slide.spec.js": "
|
|
172
|
+
"modules/api/src/presentation/presentation-slide.spec.js": "74d87b487672ed6f293e588363e94ce3335981d3",
|
|
173
173
|
"modules/api/src/presentation/presentation-slides.js": "1ec73eae0cc06c1c19aa8633ec7a52ccbe83f2a8",
|
|
174
174
|
"modules/api/src/presentation/presentation-subslide.js": "71b30552f1f00bc0849a81193b042d3a2ddedfb2",
|
|
175
|
-
"modules/api/src/presentation/presentation-subslide.spec.js": "
|
|
175
|
+
"modules/api/src/presentation/presentation-subslide.spec.js": "6380401fa11c69254749faad31ef0a8faef2d515",
|
|
176
176
|
"modules/api/src/presentation/presentation-subslides.js": "e6e46e45efdd1af8202a07093aeb5629d374445c",
|
|
177
177
|
"modules/api/src/presentation/presentation.js": "094efe8eb17c522c2921ec67b961dfb472dfd9cf",
|
|
178
178
|
"modules/api/src/selections.js": "58aab5f958720f8221e31a9b211dbd7f968f9696",
|
|
@@ -720,7 +720,7 @@
|
|
|
720
720
|
"/memorystream/0.3.1": "sha1-htcJCzDORV1j+64S3aUaR93K+bI=",
|
|
721
721
|
"/merge-stream/2.0.0": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",
|
|
722
722
|
"/merge2/1.4.1": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
|
|
723
|
-
"/methods/1.1.2": "
|
|
723
|
+
"/methods/1.1.2": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
|
|
724
724
|
"/micromatch/3.1.10": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==",
|
|
725
725
|
"/micromatch/4.0.4": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==",
|
|
726
726
|
"/micromatch/4.0.5": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",
|
|
@@ -785,7 +785,7 @@
|
|
|
785
785
|
"/pascalcase/0.1.1": "sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw==",
|
|
786
786
|
"/path-exists/3.0.0": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==",
|
|
787
787
|
"/path-exists/4.0.0": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
|
|
788
|
-
"/path-is-absolute/1.0.1": "
|
|
788
|
+
"/path-is-absolute/1.0.1": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
|
|
789
789
|
"/path-key/2.0.1": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==",
|
|
790
790
|
"/path-key/3.1.1": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
|
|
791
791
|
"/path-parse/1.0.7": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
|
|
@@ -983,7 +983,7 @@
|
|
|
983
983
|
"/uri-js/4.4.1": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
|
|
984
984
|
"/urix/0.1.0": "sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg==",
|
|
985
985
|
"/use/3.1.1": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==",
|
|
986
|
-
"/util-deprecate/1.0.2": "
|
|
986
|
+
"/util-deprecate/1.0.2": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
|
|
987
987
|
"/util.promisify/1.1.1": "sha512-/s3UsZUrIfa6xDhr7zZhnE9SLQ5RIXyYfiVnMMyMDzOc8WhWN4Nbh36H842OyurKbCDAesZOJaVyvmSl6fhGQw==",
|
|
988
988
|
"/uuid/3.4.0": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==",
|
|
989
989
|
"/uuid/8.3.2": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
|
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livepreso/api",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "6.48.1",
|
|
6
|
+
"tag": "@livepreso/api_v6.48.1",
|
|
7
|
+
"date": "Tue, 01 Oct 2024 01:45:55 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "Manifest changes"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
},
|
|
4
16
|
{
|
|
5
17
|
"version": "6.48.0",
|
|
6
18
|
"tag": "@livepreso/api_v6.48.0",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# Change Log - @livepreso/api
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Tue, 01 Oct 2024 01:45:55 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 6.48.1
|
|
6
|
+
Tue, 01 Oct 2024 01:45:55 GMT
|
|
7
|
+
|
|
8
|
+
### Patches
|
|
9
|
+
|
|
10
|
+
- Manifest changes
|
|
4
11
|
|
|
5
12
|
## 6.48.0
|
|
6
13
|
Fri, 23 Aug 2024 05:02:46 GMT
|
package/api.build.log
CHANGED
|
@@ -3,7 +3,7 @@ This project was not found in the build cache.
|
|
|
3
3
|
Invoking: run-p build:*
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @livepreso/api@6.
|
|
6
|
+
> @livepreso/api@6.48.0 build:cjs
|
|
7
7
|
> BABEL_ENV=cjs babel --delete-dir-on-start src/ --out-dir=cjs/ -s
|
|
8
8
|
|
|
9
|
-
Successfully compiled 163 files with Babel (
|
|
9
|
+
Successfully compiled 163 files with Babel (4607ms).
|
|
@@ -138,6 +138,12 @@ var ManifestJSONModel = _base.BaseModel.extend(
|
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
|
+
},
|
|
142
|
+
requires_user_connectivity: {
|
|
143
|
+
type: "array",
|
|
144
|
+
default: function _default() {
|
|
145
|
+
return [];
|
|
146
|
+
}
|
|
141
147
|
}
|
|
142
148
|
},
|
|
143
149
|
derived: {
|
|
@@ -427,6 +433,10 @@ ManifestJSONModel.createFromProject = function (projectFile) {
|
|
|
427
433
|
|
|
428
434
|
if (projectFile.app_settings) {
|
|
429
435
|
manifest.app_settings = _objectSpread(_objectSpread({}, manifest.app_settings), projectFile.app_settings);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
if (projectFile.requires_user_connectivity) {
|
|
439
|
+
manifest.requires_user_connectivity = projectFile.requires_user_connectivity;
|
|
430
440
|
} // For all new decks going forward, this should be set to true.
|
|
431
441
|
// This means we validate that a fieldset field has a value. Before
|
|
432
442
|
// this change, it was possible to save with a required field unfilled.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/models/manifest-json.js"],"names":["ManifestJSONModel","BaseModel","extend","props","key","maintainer","common","feeds","hooks","fixtures","limits","ordering","tags","titles","templates","content_editors","persistentcontext","type","default","screenshotpreferences","vector","dimensions","width","height","pdfpreferences","quality_level","has_editable_share_support","has_signing_support","point_in_time_share_policy","notify_salesperson_after_feeds_fetched","require_verification","companywide_editable","app_settings","appointment","show_visible_default","fieldsets","enforce_required","derived","screenDimensions","deps","fn","getScreenDimensions","getDimensionsByName","name","Array","isArray","dimension","find","d","toLowerCase","getPDFDimensions","defaultPDFDimensions","defaultDimensions","getAssetPath","split","sectionKey","slideKey","sectionKeyPath","url2","resolve","url","getTemplateAssetPath","parent","modelName","getPlainURL","prototype","call","createFromProject","projectFile","impostor","maxAdjunctSlides","sections","reduce","num","section","title","slides","newSection","concat","push","slide","template","index","adjunctslide","slideIndex","welcome","manifest","screen","filter","length","Error","canBeEmpty"],"mappings":";;;;;;;;;;;;;;;AAAA;;AAEA;;AACA;;AACA;;;;;;;;;;;;AAEA;AACA;AACA;AACA;AACA;AACO,IAAMA,iBAAiB,GAAGC,gBAAUC,MAAV;AAChC;AAAwC;AACvC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,EAAAA,KAAK,EAAE;AACNC,IAAAA,GAAG,EAAE,QADC;AAENC,IAAAA,UAAU,EAAE,QAFN;AAGNC,IAAAA,MAAM,EAAE,QAHF;AAINC,IAAAA,KAAK,EAAE,QAJD;AAKNC,IAAAA,KAAK,EAAE,QALD;AAMNC,IAAAA,QAAQ,EAAE,QANJ;AAONC,IAAAA,MAAM,EAAE,QAPF;AAQNC,IAAAA,QAAQ,EAAE,QARJ;AASNC,IAAAA,IAAI,EAAE,QATA;AAUNC,IAA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,IAAkBF,MAAM,CAACE,MAAP,GAAgB,CAAtC,EAAyC;AACxC,cAAM,IAAIC,KAAJ,CACL,kEADK,CAAN;AAGA;AACD;;AAEDJ,IAAAA,QAAQ,CAACjE,UAAT,GAAsBA,UAAtB;AACA;;AAED,MAAI+C,WAAW,CAAC1C,0BAAhB,EAA4C;AAC3C4D,IAAAA,QAAQ,CAAC5D,0BAAT,GACC0C,WAAW,CAAC1C,0BADb;AAEA;;AAED,MAAI0C,WAAW,CAACzC,mBAAhB,EAAqC;AACpC2D,IAAAA,QAAQ,CAAC3D,mBAAT,GAA+ByC,WAAW,CAACzC,mBAA3C;AACA;;AAED,MAAIyC,WAAW,CAACxC,0BAAhB,EAA4C;AAC3C0D,IAAAA,QAAQ,CAAC1D,0BAAT,GACCwC,WAAW,CAACxC,0BADb;AAEA;;AAED,MAAIwC,WAAW,CAACvC,sCAAhB,EAAwD;AACvDyD,IAAAA,QAAQ,CAACzD,sCAAT,GACCuC,WAAW,CAACvC,sCADb;AAEA;;AAED,MAAIuC,WAAW,CAACtC,oBAAhB,EAAsC;AACrCwD,IAAAA,QAAQ,CAACxD,oBAAT,GAAgCsC,WAAW,CAACtC,oBAA5C;AACA;;AAED,MAAIsC,WAAW,CAACpC,YAAhB,EAA8B;AAC7BsD,IAAAA,QAAQ,CAACtD,YAAT,mCACIsD,QAAQ,CAACtD,YADb,GAEIoC,WAAW,CAACpC,YAFhB;AAIA,GAxK2D,CA0K5D;AACA;AACA;AACA;;;AACAsD,EAAAA,QAAQ,CAACtD,YAAT,CAAsBG,SAAtB,CAAgCC,gBAAhC,GAAmD,KAAnD;AAEA,SAAOkD,QAAP;AACA,CAjLD;;AAmLAtF,iBAAiB,CAAC2F,UAAlB,GAA+B,IAA/B;AAEA,6BAAS,mBAAT,EAA8B3F,iBAA9B","sourcesContent":["import \"./pack.js\";\n\nimport { BaseModel } from \"./base.js\";\nimport { register } from \"../state-register.js\";\nimport url2 from \"url\";\n\n/**\n * @constructor\n * @alias models.ManifestJSONModel\n * @extends models.BaseModel\n */\nexport const ManifestJSONModel = BaseModel.extend(\n\t/** @lends models.ManifestJSONModel# */ {\n\t\t/**\n\t\t * @property {string} key\n\t\t * @property {string} maintainer\n\t\t * @property {object} common\n\t\t * @property {object} feeds\n\t\t * @property {object} hooks\n\t\t * @property {object} limits\n\t\t * @property {object} ordering\n\t\t * @property {object} tags\n\t\t * @property {object} titles\n\t\t * @property {object} templates\n\t\t * @property {object} screenshotpreferences\n\t\t * @property {object} dimensions\n\t\t * @property {object} pdfpreferences\n\t\t * @property {boolean} has_editable_share_support\n\t\t * @property {boolean} has_signing_support\n\t\t * @property {boolean} notify_salesperson_after_feeds_fetched\n\t\t * @property {boolean} require_verification\n\t\t * @property {boolean} companywide_editable\n\t\t * @property {object} content_editors\n\t\t */\n\t\tprops: {\n\t\t\tkey: \"string\",\n\t\t\tmaintainer: \"string\",\n\t\t\tcommon: \"object\",\n\t\t\tfeeds: \"object\",\n\t\t\thooks: \"string\",\n\t\t\tfixtures: \"object\",\n\t\t\tlimits: \"object\",\n\t\t\tordering: \"object\",\n\t\t\ttags: \"object\",\n\t\t\ttitles: \"object\",\n\t\t\ttemplates: \"object\",\n\t\t\tcontent_editors: \"object\",\n\t\t\tpersistentcontext: {\n\t\t\t\ttype: \"boolean\",\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t\tscreenshotpreferences: {\n\t\t\t\ttype: \"object\",\n\t\t\t\tdefault: function () {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tvector: false,\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t},\n\t\t\tdimensions: {\n\t\t\t\t// This could be a list or an object\n\t\t\t\ttype: \"any\",\n\t\t\t\tdefault: function () {\n\t\t\t\t\treturn {\n\t\t\t\t\t\twidth: 1024,\n\t\t\t\t\t\theight: 768,\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t},\n\t\t\tpdfpreferences: {\n\t\t\t\ttype: \"object\",\n\t\t\t\tdefault: function () {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tquality_level: \"prepress\",\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t},\n\t\t\thas_editable_share_support: {\n\t\t\t\ttype: \"boolean\",\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t\thas_signing_support: {\n\t\t\t\ttype: \"boolean\",\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t\tpoint_in_time_share_policy: {\n\t\t\t\ttype: \"string\",\n\t\t\t},\n\t\t\tnotify_salesperson_after_feeds_fetched: {\n\t\t\t\ttype: \"boolean\",\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t\trequire_verification: {\n\t\t\t\ttype: \"boolean\",\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t\tcompanywide_editable: {\n\t\t\t\ttype: \"boolean\",\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t\tapp_settings: {\n\t\t\t\ttype: \"object\",\n\t\t\t\tdefault: function () {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tappointment: {\n\t\t\t\t\t\t\tshow_visible_default: false,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tfieldsets: {\n\t\t\t\t\t\t\tenforce_required: false,\n\t\t\t\t\t\t},\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\n\t\tderived: {\n\t\t\t// Most places just need this value, and making it derived\n\t\t\t// gives us lower overhead (when we convert with .toJSON() it will\n\t\t\t// also include this value, and means we don't have to convert back to\n\t\t\t// a model just to get this again.)\n\t\t\tscreenDimensions: {\n\t\t\t\tdeps: [\"dimensions\"],\n\t\t\t\tfn: function () {\n\t\t\t\t\treturn this.getScreenDimensions();\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\n\t\tgetDimensionsByName(name) {\n\t\t\tif (Array.isArray(this.dimensions)) {\n\t\t\t\tconst dimension = this.dimensions.find(\n\t\t\t\t\t(d) => d.name.toLowerCase() === name.toLowerCase(),\n\t\t\t\t);\n\t\t\t\tif (!dimension) {\n\t\t\t\t\treturn { width: 1024, height: 767 };\n\t\t\t\t}\n\t\t\t\treturn { width: dimension.width, height: dimension.height };\n\t\t\t}\n\t\t\treturn this.dimensions;\n\t\t},\n\n\t\tgetScreenDimensions() {\n\t\t\treturn this.getDimensionsByName(\"screen\");\n\t\t},\n\n\t\tgetPDFDimensions() {\n\t\t\tif (Array.isArray(this.dimensions)) {\n\t\t\t\tconst defaultPDFDimensions =\n\t\t\t\t\tthis.pdfpreferences?.defaultDimensions || \"screen\";\n\t\t\t\treturn this.getDimensionsByName(defaultPDFDimensions);\n\t\t\t}\n\t\t\treturn this.dimensions;\n\t\t},\n\n\t\t/**\n\t\t * Returns the path to a manifest asset, using its url as the base.\n\t\t * @param {?string} key\n\t\t * @returns {?string}\n\t\t */\n\t\tgetAssetPath(key = null) {\n\t\t\tif (key) {\n\t\t\t\tconst [sectionKey, slideKey = null] = key.split(\"/\");\n\t\t\t\tconst sectionKeyPath = url2.resolve(\n\t\t\t\t\tthis.url(),\n\t\t\t\t\t`sections/${sectionKey}/`,\n\t\t\t\t);\n\t\t\t\tif (slideKey) {\n\t\t\t\t\treturn url2.resolve(sectionKeyPath, `slides/${slideKey}/`);\n\t\t\t\t}\n\t\t\t\treturn sectionKeyPath;\n\t\t\t}\n\n\t\t\treturn this.url();\n\t\t},\n\n\t\t/**\n\t\t Returns path to template assets, which are exceptional to regular slide assets\n\t\t * @param {?string} key\n\t\t * @returns {?string}\n\t\t */\n\t\tgetTemplateAssetPath(key) {\n\t\t\treturn url2.resolve(this.getAssetPath(), `templates/${key}/`);\n\t\t},\n\n\t\turl() {\n\t\t\tif (this.parent && this.parent.modelName === \"deckversions\") {\n\t\t\t\treturn `${this.parent.getPlainURL()}manifest/`;\n\t\t\t}\n\n\t\t\treturn BaseModel.prototype.url.call(this);\n\t\t},\n\t},\n);\n\n/**\n * Converts a project file into a manifest json object. This expected\n * the project.yaml file to have been already read into a javascript\n * object.\n */\nManifestJSONModel.createFromProject = function (projectFile) {\n\t// If the deck is an impostor deck, we have to update some things for\n\t// them to make sense in the impostor format\n\tif (projectFile.impostor) {\n\t\t// There is only one real section; all of the \"sections\" defined in the\n\t\t// project.yaml are actually slides, and slides can't have a maxAdjunctSlides\n\t\t// value. We get around this by totalling up all of the maxAdjunctSlides values\n\t\t// across the sections and give that number to the real section. Later e.g. in the\n\t\t// app, that number will be taken and divided by the number of impostor sections\n\t\t// to get the maxAdjunctSlides value for each impostor section\n\t\tconst maxAdjunctSlides = projectFile.sections.reduce((num, section) => {\n\t\t\treturn num + (section.maxAdjunctSlides || 0);\n\t\t}, 0);\n\n\t\t// Create a \"real\" section (that will never be seen by the user) and give\n\t\t// it all of the sections & slides. Impostor sections (which are technically\n\t\t// slides) are given the \"section-header\" tag to mark them as sections\n\t\tprojectFile.sections = [\n\t\t\t{\n\t\t\t\tmaxAdjunctSlides,\n\t\t\t\tkey: projectFile.key,\n\t\t\t\ttitle: projectFile.name,\n\t\t\t\tslides: projectFile.sections.reduce((sections, section) => {\n\t\t\t\t\tconst newSection = {\n\t\t\t\t\t\t...section,\n\t\t\t\t\t\tslides: [],\n\t\t\t\t\t};\n\t\t\t\t\tnewSection.tags = [\"section-header\"].concat(newSection.tags || []);\n\n\t\t\t\t\tsections.push(newSection, ...(section.slides || []));\n\t\t\t\t\treturn sections;\n\t\t\t\t}, []),\n\t\t\t},\n\t\t];\n\t}\n\n\tconst titles = projectFile.sections.reduce((titles, section) => {\n\t\ttitles[section.key] = section.title;\n\t\tfor (const slide of section.slides || []) {\n\t\t\ttitles[`${section.key}/${slide.key}`] = slide.title;\n\t\t}\n\t\treturn titles;\n\t}, {});\n\n\tconst templates = (projectFile.templates || []).reduce(\n\t\t(templates, template, index) => {\n\t\t\ttemplates[template.key] = {\n\t\t\t\ttitle: template.title,\n\t\t\t\tordering: index + 1,\n\t\t\t};\n\t\t\treturn templates;\n\t\t},\n\t\t{},\n\t);\n\n\tconst limits = {\n\t\tadjunctslide: projectFile.sections.reduce((limits, section) => {\n\t\t\tif (typeof section.maxAdjunctSlides === \"number\") {\n\t\t\t\tlimits[section.key] = section.maxAdjunctSlides;\n\t\t\t}\n\t\t\treturn limits;\n\t\t}, {}),\n\t};\n\n\tconst ordering = projectFile.sections.reduce((ordering, section, index) => {\n\t\tordering[section.key] = index + 1;\n\t\tlet slideIndex = 0;\n\t\tfor (const slide of section.slides || []) {\n\t\t\tslideIndex++;\n\t\t\tordering[`${section.key}/${slide.key}`] = slideIndex;\n\t\t}\n\t\treturn ordering;\n\t}, {});\n\n\tconst tags = projectFile.sections.reduce((tags, section) => {\n\t\ttags[section.key] = section.tags || [];\n\t\tfor (const slide of section.slides || []) {\n\t\t\ttags[`${section.key}/${slide.key}`] = slide.tags || [];\n\t\t}\n\t\treturn tags;\n\t}, {});\n\n\t// Add config for the Welcome slide here - it's namespaced in\n\t// the project.yaml under the \"welcome\" key\n\tif (projectFile.welcome) {\n\t\tif (projectFile.welcome.tags) {\n\t\t\t// It's convention to use an empty string for the\n\t\t\t// Welcome slide's key\n\t\t\ttags[\"\"] = projectFile.welcome.tags || [];\n\t\t}\n\t}\n\n\tconst manifest = new ManifestJSONModel({\n\t\tcommon: projectFile.common,\n\t\tfeeds: projectFile.feeds,\n\t\thooks: projectFile.hooks,\n\t\tfixtures: projectFile.fixtures,\n\t\ttitles,\n\t\ttemplates,\n\t\tordering,\n\t\tlimits,\n\t\ttags,\n\t\tkey: projectFile.key,\n\t});\n\n\tif (projectFile.content_editors) {\n\t\tmanifest.content_editors = projectFile.content_editors;\n\t}\n\n\tif (projectFile.screenshotpreferences) {\n\t\tmanifest.screenshotpreferences = projectFile.screenshotpreferences;\n\t}\n\n\tif (projectFile.pdfpreferences) {\n\t\tmanifest.pdfpreferences = projectFile.pdfpreferences;\n\t}\n\n\tif (projectFile.persistentcontext) {\n\t\tmanifest.persistentcontext = projectFile.persistentcontext;\n\t}\n\n\tif (projectFile.maintainer) {\n\t\tmanifest.maintainer = projectFile.maintainer;\n\t}\n\n\tif (projectFile.dimensions) {\n\t\tconst { dimensions } = projectFile;\n\n\t\tif (Array.isArray(dimensions)) {\n\t\t\tconst screen = dimensions.filter((d) => d.name === \"Screen\");\n\t\t\tif (!screen.length || screen.length > 1) {\n\t\t\t\tthrow new Error(\n\t\t\t\t\t\"Dimensions must contain one value named 'Screen' in project.yaml\",\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\tmanifest.dimensions = dimensions;\n\t}\n\n\tif (projectFile.has_editable_share_support) {\n\t\tmanifest.has_editable_share_support =\n\t\t\tprojectFile.has_editable_share_support;\n\t}\n\n\tif (projectFile.has_signing_support) {\n\t\tmanifest.has_signing_support = projectFile.has_signing_support;\n\t}\n\n\tif (projectFile.point_in_time_share_policy) {\n\t\tmanifest.point_in_time_share_policy =\n\t\t\tprojectFile.point_in_time_share_policy;\n\t}\n\n\tif (projectFile.notify_salesperson_after_feeds_fetched) {\n\t\tmanifest.notify_salesperson_after_feeds_fetched =\n\t\t\tprojectFile.notify_salesperson_after_feeds_fetched;\n\t}\n\n\tif (projectFile.require_verification) {\n\t\tmanifest.require_verification = projectFile.require_verification;\n\t}\n\n\tif (projectFile.app_settings) {\n\t\tmanifest.app_settings = {\n\t\t\t...manifest.app_settings,\n\t\t\t...projectFile.app_settings,\n\t\t};\n\t}\n\n\t// For all new decks going forward, this should be set to true.\n\t// This means we validate that a fieldset field has a value. Before\n\t// this change, it was possible to save with a required field unfilled.\n\t// This just keeps backwards compatability.\n\tmanifest.app_settings.fieldsets.enforce_required = false;\n\n\treturn manifest;\n};\n\nManifestJSONModel.canBeEmpty = true;\n\nregister(\"ManifestJSONModel\", ManifestJSONModel);\n"],"file":"manifest-json.js"}
|
|
1
|
+
{"version":3,"sources":["../../src/models/manifest-json.js"],"names":["ManifestJSONModel","BaseModel","extend","props","key","maintainer","common","feeds","hooks","fixtures","limits","ordering","tags","titles","templates","content_editors","persistentcontext","type","default","screenshotpreferences","vector","dimensions","width","height","pdfpreferences","quality_level","has_editable_share_support","has_signing_support","point_in_time_share_policy","notify_salesperson_after_feeds_fetched","require_verification","companywide_editable","app_settings","appointment","show_visible_default","fieldsets","enforce_required","requires_user_connectivity","derived","screenDimensions","deps","fn","getScreenDimensions","getDimensionsByName","name","Array","isArray","dimension","find","d","toLowerCase","getPDFDimensions","defaultPDFDimensions","defaultDimensions","getAssetPath","split","sectionKey","slideKey","sectionKeyPath","url2","resolve","url","getTemplateAssetPath","parent","modelName","getPlainURL","prototype","call","createFromProject","projectFile","impostor","maxAdjunctSlides","sections","reduce","num","section","title","slides","newSection","concat","push","slide","template","index","adjunctslide","slideIndex","welcome","manifest","screen","filter","length","Error","canBeEmpty"],"mappings":";;;;;;;;;;;;;;;AAAA;;AAEA;;AACA;;AACA;;;;;;;;;;;;AAEA;AACA;AACA;AACA;AACA;AACO,IAAMA,iBAAiB,GAAGC,gBAAUC,MAAV;AAChC;AAAwC;AACvC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,EAAAA,KAAK,EAAE;AACNC,IAAAA,GAAG,EAAE,QADC;AAENC,IAAAA,UAAU,EAAE,QAFN;AAGNC,IAAAA,MAAM,EAAE,QAHF;AAINC,IAAAA,KAAK,EAAE,QAJD;AAKNC,IAAAA,KAAK,EAAE,QALD;AAMNC,IAAAA,QAAQ,EAAE,QANJ;AAONC,IAAAA,MAAM,EAAE,QAPF;AAQNC,IAAAA,QAAQ,EAAE,QARJ;AASNC,IAAAA,IAAI,EAAE,QATA;AAUNC,IAAAA,MAAM,EAAE,QAVF;AAWNC,IAAAA,SAAS,EAAE,QAXL;AAYNC,IAAAA,eAAe,EAAE,QAZX;AAaNC,IAAAA,iBAAiB,EAAE;AAClBC,MAAAA,IAAI,EAAE,SADY;AAElBC,MAAAA,OAAO,EAAE;AAFS,KAbb;AAiBNC,IAAAA,qBAAqB,EAAE;AACtBF,MAAAA,IAAI,EAAE,QADgB;AAEtBC,MAAAA,OAAO,EAA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,UAAT,GAAsBA,UAAtB;AACA;;AAED,MAAIgD,WAAW,CAAC3C,0BAAhB,EAA4C;AAC3C6D,IAAAA,QAAQ,CAAC7D,0BAAT,GACC2C,WAAW,CAAC3C,0BADb;AAEA;;AAED,MAAI2C,WAAW,CAAC1C,mBAAhB,EAAqC;AACpC4D,IAAAA,QAAQ,CAAC5D,mBAAT,GAA+B0C,WAAW,CAAC1C,mBAA3C;AACA;;AAED,MAAI0C,WAAW,CAACzC,0BAAhB,EAA4C;AAC3C2D,IAAAA,QAAQ,CAAC3D,0BAAT,GACCyC,WAAW,CAACzC,0BADb;AAEA;;AAED,MAAIyC,WAAW,CAACxC,sCAAhB,EAAwD;AACvD0D,IAAAA,QAAQ,CAAC1D,sCAAT,GACCwC,WAAW,CAACxC,sCADb;AAEA;;AAED,MAAIwC,WAAW,CAACvC,oBAAhB,EAAsC;AACrCyD,IAAAA,QAAQ,CAACzD,oBAAT,GAAgCuC,WAAW,CAACvC,oBAA5C;AACA;;AAED,MAAIuC,WAAW,CAACrC,YAAhB,EAA8B;AAC7BuD,IAAAA,QAAQ,CAACvD,YAAT,mCACIuD,QAAQ,CAACvD,YADb,GAEIqC,WAAW,CAACrC,YAFhB;AAIA;;AAED,MAAIqC,WAAW,CAAChC,0BAAhB,EAA4C;AAC3CkD,IAAAA,QAAQ,CAAClD,0BAAT,GACCgC,WAAW,CAAChC,0BADb;AAEA,GA7K2D,CA+K5D;AACA;AACA;AACA;;;AACAkD,EAAAA,QAAQ,CAACvD,YAAT,CAAsBG,SAAtB,CAAgCC,gBAAhC,GAAmD,KAAnD;AAEA,SAAOmD,QAAP;AACA,CAtLD;;AAwLAvF,iBAAiB,CAAC4F,UAAlB,GAA+B,IAA/B;AAEA,6BAAS,mBAAT,EAA8B5F,iBAA9B","sourcesContent":["import \"./pack.js\";\n\nimport { BaseModel } from \"./base.js\";\nimport { register } from \"../state-register.js\";\nimport url2 from \"url\";\n\n/**\n * @constructor\n * @alias models.ManifestJSONModel\n * @extends models.BaseModel\n */\nexport const ManifestJSONModel = BaseModel.extend(\n\t/** @lends models.ManifestJSONModel# */ {\n\t\t/**\n\t\t * @property {string} key\n\t\t * @property {string} maintainer\n\t\t * @property {object} common\n\t\t * @property {object} feeds\n\t\t * @property {object} hooks\n\t\t * @property {object} limits\n\t\t * @property {object} ordering\n\t\t * @property {object} tags\n\t\t * @property {object} titles\n\t\t * @property {object} templates\n\t\t * @property {object} screenshotpreferences\n\t\t * @property {object} dimensions\n\t\t * @property {object} pdfpreferences\n\t\t * @property {boolean} has_editable_share_support\n\t\t * @property {boolean} has_signing_support\n\t\t * @property {boolean} notify_salesperson_after_feeds_fetched\n\t\t * @property {boolean} require_verification\n\t\t * @property {boolean} companywide_editable\n\t\t * @property {object} content_editors\n\t\t */\n\t\tprops: {\n\t\t\tkey: \"string\",\n\t\t\tmaintainer: \"string\",\n\t\t\tcommon: \"object\",\n\t\t\tfeeds: \"object\",\n\t\t\thooks: \"string\",\n\t\t\tfixtures: \"object\",\n\t\t\tlimits: \"object\",\n\t\t\tordering: \"object\",\n\t\t\ttags: \"object\",\n\t\t\ttitles: \"object\",\n\t\t\ttemplates: \"object\",\n\t\t\tcontent_editors: \"object\",\n\t\t\tpersistentcontext: {\n\t\t\t\ttype: \"boolean\",\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t\tscreenshotpreferences: {\n\t\t\t\ttype: \"object\",\n\t\t\t\tdefault: function () {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tvector: false,\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t},\n\t\t\tdimensions: {\n\t\t\t\t// This could be a list or an object\n\t\t\t\ttype: \"any\",\n\t\t\t\tdefault: function () {\n\t\t\t\t\treturn {\n\t\t\t\t\t\twidth: 1024,\n\t\t\t\t\t\theight: 768,\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t},\n\t\t\tpdfpreferences: {\n\t\t\t\ttype: \"object\",\n\t\t\t\tdefault: function () {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tquality_level: \"prepress\",\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t},\n\t\t\thas_editable_share_support: {\n\t\t\t\ttype: \"boolean\",\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t\thas_signing_support: {\n\t\t\t\ttype: \"boolean\",\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t\tpoint_in_time_share_policy: {\n\t\t\t\ttype: \"string\",\n\t\t\t},\n\t\t\tnotify_salesperson_after_feeds_fetched: {\n\t\t\t\ttype: \"boolean\",\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t\trequire_verification: {\n\t\t\t\ttype: \"boolean\",\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t\tcompanywide_editable: {\n\t\t\t\ttype: \"boolean\",\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t\tapp_settings: {\n\t\t\t\ttype: \"object\",\n\t\t\t\tdefault: function () {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tappointment: {\n\t\t\t\t\t\t\tshow_visible_default: false,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tfieldsets: {\n\t\t\t\t\t\t\tenforce_required: false,\n\t\t\t\t\t\t},\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t},\n\t\t\trequires_user_connectivity: {\n\t\t\t\ttype: \"array\",\n\t\t\t\tdefault: () => {\n\t\t\t\t\treturn [];\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\n\t\tderived: {\n\t\t\t// Most places just need this value, and making it derived\n\t\t\t// gives us lower overhead (when we convert with .toJSON() it will\n\t\t\t// also include this value, and means we don't have to convert back to\n\t\t\t// a model just to get this again.)\n\t\t\tscreenDimensions: {\n\t\t\t\tdeps: [\"dimensions\"],\n\t\t\t\tfn: function () {\n\t\t\t\t\treturn this.getScreenDimensions();\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\n\t\tgetDimensionsByName(name) {\n\t\t\tif (Array.isArray(this.dimensions)) {\n\t\t\t\tconst dimension = this.dimensions.find(\n\t\t\t\t\t(d) => d.name.toLowerCase() === name.toLowerCase(),\n\t\t\t\t);\n\t\t\t\tif (!dimension) {\n\t\t\t\t\treturn { width: 1024, height: 767 };\n\t\t\t\t}\n\t\t\t\treturn { width: dimension.width, height: dimension.height };\n\t\t\t}\n\t\t\treturn this.dimensions;\n\t\t},\n\n\t\tgetScreenDimensions() {\n\t\t\treturn this.getDimensionsByName(\"screen\");\n\t\t},\n\n\t\tgetPDFDimensions() {\n\t\t\tif (Array.isArray(this.dimensions)) {\n\t\t\t\tconst defaultPDFDimensions =\n\t\t\t\t\tthis.pdfpreferences?.defaultDimensions || \"screen\";\n\t\t\t\treturn this.getDimensionsByName(defaultPDFDimensions);\n\t\t\t}\n\t\t\treturn this.dimensions;\n\t\t},\n\n\t\t/**\n\t\t * Returns the path to a manifest asset, using its url as the base.\n\t\t * @param {?string} key\n\t\t * @returns {?string}\n\t\t */\n\t\tgetAssetPath(key = null) {\n\t\t\tif (key) {\n\t\t\t\tconst [sectionKey, slideKey = null] = key.split(\"/\");\n\t\t\t\tconst sectionKeyPath = url2.resolve(\n\t\t\t\t\tthis.url(),\n\t\t\t\t\t`sections/${sectionKey}/`,\n\t\t\t\t);\n\t\t\t\tif (slideKey) {\n\t\t\t\t\treturn url2.resolve(sectionKeyPath, `slides/${slideKey}/`);\n\t\t\t\t}\n\t\t\t\treturn sectionKeyPath;\n\t\t\t}\n\n\t\t\treturn this.url();\n\t\t},\n\n\t\t/**\n\t\t Returns path to template assets, which are exceptional to regular slide assets\n\t\t * @param {?string} key\n\t\t * @returns {?string}\n\t\t */\n\t\tgetTemplateAssetPath(key) {\n\t\t\treturn url2.resolve(this.getAssetPath(), `templates/${key}/`);\n\t\t},\n\n\t\turl() {\n\t\t\tif (this.parent && this.parent.modelName === \"deckversions\") {\n\t\t\t\treturn `${this.parent.getPlainURL()}manifest/`;\n\t\t\t}\n\n\t\t\treturn BaseModel.prototype.url.call(this);\n\t\t},\n\t},\n);\n\n/**\n * Converts a project file into a manifest json object. This expected\n * the project.yaml file to have been already read into a javascript\n * object.\n */\nManifestJSONModel.createFromProject = function (projectFile) {\n\t// If the deck is an impostor deck, we have to update some things for\n\t// them to make sense in the impostor format\n\tif (projectFile.impostor) {\n\t\t// There is only one real section; all of the \"sections\" defined in the\n\t\t// project.yaml are actually slides, and slides can't have a maxAdjunctSlides\n\t\t// value. We get around this by totalling up all of the maxAdjunctSlides values\n\t\t// across the sections and give that number to the real section. Later e.g. in the\n\t\t// app, that number will be taken and divided by the number of impostor sections\n\t\t// to get the maxAdjunctSlides value for each impostor section\n\t\tconst maxAdjunctSlides = projectFile.sections.reduce((num, section) => {\n\t\t\treturn num + (section.maxAdjunctSlides || 0);\n\t\t}, 0);\n\n\t\t// Create a \"real\" section (that will never be seen by the user) and give\n\t\t// it all of the sections & slides. Impostor sections (which are technically\n\t\t// slides) are given the \"section-header\" tag to mark them as sections\n\t\tprojectFile.sections = [\n\t\t\t{\n\t\t\t\tmaxAdjunctSlides,\n\t\t\t\tkey: projectFile.key,\n\t\t\t\ttitle: projectFile.name,\n\t\t\t\tslides: projectFile.sections.reduce((sections, section) => {\n\t\t\t\t\tconst newSection = {\n\t\t\t\t\t\t...section,\n\t\t\t\t\t\tslides: [],\n\t\t\t\t\t};\n\t\t\t\t\tnewSection.tags = [\"section-header\"].concat(newSection.tags || []);\n\n\t\t\t\t\tsections.push(newSection, ...(section.slides || []));\n\t\t\t\t\treturn sections;\n\t\t\t\t}, []),\n\t\t\t},\n\t\t];\n\t}\n\n\tconst titles = projectFile.sections.reduce((titles, section) => {\n\t\ttitles[section.key] = section.title;\n\t\tfor (const slide of section.slides || []) {\n\t\t\ttitles[`${section.key}/${slide.key}`] = slide.title;\n\t\t}\n\t\treturn titles;\n\t}, {});\n\n\tconst templates = (projectFile.templates || []).reduce(\n\t\t(templates, template, index) => {\n\t\t\ttemplates[template.key] = {\n\t\t\t\ttitle: template.title,\n\t\t\t\tordering: index + 1,\n\t\t\t};\n\t\t\treturn templates;\n\t\t},\n\t\t{},\n\t);\n\n\tconst limits = {\n\t\tadjunctslide: projectFile.sections.reduce((limits, section) => {\n\t\t\tif (typeof section.maxAdjunctSlides === \"number\") {\n\t\t\t\tlimits[section.key] = section.maxAdjunctSlides;\n\t\t\t}\n\t\t\treturn limits;\n\t\t}, {}),\n\t};\n\n\tconst ordering = projectFile.sections.reduce((ordering, section, index) => {\n\t\tordering[section.key] = index + 1;\n\t\tlet slideIndex = 0;\n\t\tfor (const slide of section.slides || []) {\n\t\t\tslideIndex++;\n\t\t\tordering[`${section.key}/${slide.key}`] = slideIndex;\n\t\t}\n\t\treturn ordering;\n\t}, {});\n\n\tconst tags = projectFile.sections.reduce((tags, section) => {\n\t\ttags[section.key] = section.tags || [];\n\t\tfor (const slide of section.slides || []) {\n\t\t\ttags[`${section.key}/${slide.key}`] = slide.tags || [];\n\t\t}\n\t\treturn tags;\n\t}, {});\n\n\t// Add config for the Welcome slide here - it's namespaced in\n\t// the project.yaml under the \"welcome\" key\n\tif (projectFile.welcome) {\n\t\tif (projectFile.welcome.tags) {\n\t\t\t// It's convention to use an empty string for the\n\t\t\t// Welcome slide's key\n\t\t\ttags[\"\"] = projectFile.welcome.tags || [];\n\t\t}\n\t}\n\n\tconst manifest = new ManifestJSONModel({\n\t\tcommon: projectFile.common,\n\t\tfeeds: projectFile.feeds,\n\t\thooks: projectFile.hooks,\n\t\tfixtures: projectFile.fixtures,\n\t\ttitles,\n\t\ttemplates,\n\t\tordering,\n\t\tlimits,\n\t\ttags,\n\t\tkey: projectFile.key,\n\t});\n\n\tif (projectFile.content_editors) {\n\t\tmanifest.content_editors = projectFile.content_editors;\n\t}\n\n\tif (projectFile.screenshotpreferences) {\n\t\tmanifest.screenshotpreferences = projectFile.screenshotpreferences;\n\t}\n\n\tif (projectFile.pdfpreferences) {\n\t\tmanifest.pdfpreferences = projectFile.pdfpreferences;\n\t}\n\n\tif (projectFile.persistentcontext) {\n\t\tmanifest.persistentcontext = projectFile.persistentcontext;\n\t}\n\n\tif (projectFile.maintainer) {\n\t\tmanifest.maintainer = projectFile.maintainer;\n\t}\n\n\tif (projectFile.dimensions) {\n\t\tconst { dimensions } = projectFile;\n\n\t\tif (Array.isArray(dimensions)) {\n\t\t\tconst screen = dimensions.filter((d) => d.name === \"Screen\");\n\t\t\tif (!screen.length || screen.length > 1) {\n\t\t\t\tthrow new Error(\n\t\t\t\t\t\"Dimensions must contain one value named 'Screen' in project.yaml\",\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\tmanifest.dimensions = dimensions;\n\t}\n\n\tif (projectFile.has_editable_share_support) {\n\t\tmanifest.has_editable_share_support =\n\t\t\tprojectFile.has_editable_share_support;\n\t}\n\n\tif (projectFile.has_signing_support) {\n\t\tmanifest.has_signing_support = projectFile.has_signing_support;\n\t}\n\n\tif (projectFile.point_in_time_share_policy) {\n\t\tmanifest.point_in_time_share_policy =\n\t\t\tprojectFile.point_in_time_share_policy;\n\t}\n\n\tif (projectFile.notify_salesperson_after_feeds_fetched) {\n\t\tmanifest.notify_salesperson_after_feeds_fetched =\n\t\t\tprojectFile.notify_salesperson_after_feeds_fetched;\n\t}\n\n\tif (projectFile.require_verification) {\n\t\tmanifest.require_verification = projectFile.require_verification;\n\t}\n\n\tif (projectFile.app_settings) {\n\t\tmanifest.app_settings = {\n\t\t\t...manifest.app_settings,\n\t\t\t...projectFile.app_settings,\n\t\t};\n\t}\n\n\tif (projectFile.requires_user_connectivity) {\n\t\tmanifest.requires_user_connectivity =\n\t\t\tprojectFile.requires_user_connectivity;\n\t}\n\n\t// For all new decks going forward, this should be set to true.\n\t// This means we validate that a fieldset field has a value. Before\n\t// this change, it was possible to save with a required field unfilled.\n\t// This just keeps backwards compatability.\n\tmanifest.app_settings.fieldsets.enforce_required = false;\n\n\treturn manifest;\n};\n\nManifestJSONModel.canBeEmpty = true;\n\nregister(\"ManifestJSONModel\", ManifestJSONModel);\n"],"file":"manifest-json.js"}
|
package/cjs/models/user.js
CHANGED
|
@@ -164,11 +164,15 @@ var UserModel = _base.BaseModel.extend(
|
|
|
164
164
|
var customers = {
|
|
165
165
|
canCreateWithoutTeam: this.actions.indexOf("Allow Teamless Customers") > -1
|
|
166
166
|
};
|
|
167
|
+
var signing = {
|
|
168
|
+
canUseSigning: this.actions.includes("Use Signing")
|
|
169
|
+
};
|
|
167
170
|
return {
|
|
168
171
|
presets: presets,
|
|
169
172
|
appointments: appointments,
|
|
170
173
|
presomanager: presomanager,
|
|
171
|
-
customers: customers
|
|
174
|
+
customers: customers,
|
|
175
|
+
signing: signing
|
|
172
176
|
};
|
|
173
177
|
}
|
|
174
178
|
}
|
package/cjs/models/user.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/models/user.js"],"names":["UserModel","BaseModel","extend","modelName","initialize","options","self","anon","props","actions","type","default","preferences","notification_sender","email_signature","app_prefs","timezone","eula_key","calendar_feed","date_joined","email","first_name","last_name","is_active","is_staff","is_superuser","is_support","is_manager","last_login","username","profile","rtms_topic","rtms_token","last_reset_request","children","tenancy","collections","groups","team_set","derived","fullName","deps","fn","permissions","presets","canCreateCompanyPresets","indexOf","canCreateTeamPresets","presomanager","isGlobalTemporarySlideManager","isTeamTemporarySlideManager","isTeamContentManager","isContentCreator","canAddGlobalNotes","canAddTeamNotes","canModifyNotes","canModifyTemporarySlides","isPresoManagerUser","canModifyContent","appointments","canUploadCustomSlides","isContentAdmin","telePresenter","livePresenter","canViewPresosOfOthers","canShare","canPresent","canCreateWithoutTeam","canUseClosedCaptions","canCreateMutedAppointments","canHandoverPresosOfOthers","canChooseShareVisAnyone","canChooseShareVis2fa","customers","fetchJwtLogin","redirectURL","authURL","Api","getResourceURL","set","Auth","headers","then","resp","body","url","fetch","prototype","apply","arguments","tap","originalUrl","call","toServer","data","id","map","group"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,I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A,WAAW,EAAE,KAAKA;AAFN,KAAb;;AAKA,QAAI,KAAKyB,MAAT,EAAiB;AAChByD,MAAAA,IAAI,CAACzD,MAAL,GAAc,KAAKA,MAAL,CAAY2D,GAAZ,CAAgB,UAACC,KAAD;AAAA,eAAWA,KAAK,CAACZ,GAAN,EAAX;AAAA,OAAhB,CAAd;AACA;;AAED,QAAI,CAACS,IAAI,CAAClF,WAAL,CAAiBI,QAAtB,EAAgC;AAC/B,aAAO8E,IAAI,CAAClF,WAAL,CAAiBI,QAAxB;AACA;;AAED,WAAO8E,IAAP;AACA;AA/N8B,CADR,CAAlB;;;AAoOP,6BAAS,WAAT,EAAsB9F,SAAtB","sourcesContent":["import \"./tenancy.js\";\nimport \"../collections/groups.js\";\nimport \"../collections/teams.js\";\n\nimport { Api } from \"../api.js\";\nimport { Auth } from \"../auth.js\";\nimport { BaseModel } from \"./base.js\";\nimport SuperAgentRequest from \"superagent-bluebird-promise\";\nimport { register } from \"../state-register.js\";\n\n/**\n\n * @constructor\n * @alias models.UserModel\n * @extends models.BaseModel\n */\nexport const UserModel = BaseModel.extend(\n\t/** @lends models.UserModel# */ {\n\t\tmodelName: \"users\",\n\n\t\tinitialize(options = { self: false, anon: false }) {\n\t\t\tthis.self = options && options.self ? options.self : false;\n\t\t\tthis.anon = options && options.anon ? options.anon : false;\n\t\t},\n\n\t\t/**\n\t\t * @property {string[]} actions\n\t\t * @property {date} date_joined\n\t\t * @property {string} email\n\t\t * @property {string} first_name\n\t\t * @property {string} last_name\n\t\t * @property {boolean} is_active\n\t\t * @property {boolean} is_staff\n\t\t * @property {boolean} is_superuser\n\t\t * @property {boolean} is_support\n\t\t * @property {boolean} is_manager\n\t\t * @property {date} last_login\n\t\t * @property {string} username\n\t\t * @property {object} preferences\n\t\t * @property {object} profile\n\t\t * @property {string} rtms_topic\n\t\t * @property {string} rtms_token\n\t\t * @property {date} last_reset_request\n\t\t */\n\t\tprops: {\n\t\t\tactions: {\n\t\t\t\ttype: \"array\",\n\t\t\t\tdefault: () => [],\n\t\t\t},\n\t\t\tpreferences: {\n\t\t\t\ttype: \"object\",\n\t\t\t\tdefault: () => {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tnotification_sender: \"default\",\n\t\t\t\t\t\temail_signature: \"\",\n\t\t\t\t\t\tapp_prefs: {},\n\t\t\t\t\t\ttimezone: \"\",\n\t\t\t\t\t\teula_key: \"\",\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t},\n\t\t\tcalendar_feed: \"string\",\n\t\t\tdate_joined: \"date\",\n\t\t\temail: \"string\",\n\t\t\tfirst_name: \"string\",\n\t\t\tlast_name: \"string\",\n\t\t\tis_active: \"boolean\",\n\t\t\tis_staff: \"boolean\",\n\t\t\tis_superuser: \"boolean\",\n\t\t\tis_support: \"boolean\",\n\t\t\tis_manager: \"boolean\",\n\t\t\tlast_login: \"date\",\n\t\t\tusername: \"string\",\n\t\t\tprofile: \"object\",\n\t\t\trtms_topic: \"string\",\n\t\t\trtms_token: \"string\",\n\t\t\tlast_reset_request: \"string\",\n\t\t},\n\n\t\t/**\n\t\t * @property {models.TenancyModel} tenancy\n\t\t */\n\t\tchildren: {\n\t\t\ttenancy: \"TenancyModel\",\n\t\t},\n\n\t\t/**\n\t\t * @property {collections.GroupCollection} groups\n\t\t * @property {collections.TeamCollection} team_set\n\t\t */\n\t\tcollections: {\n\t\t\tgroups: \"GroupCollection\",\n\t\t\tteam_set: \"TeamCollection\",\n\t\t},\n\n\t\t/**\n\t\t * @property {string} fullName - The full name of the user\n\t\t * @property {object} permissions - The one place for testing user permissions\n\t\t * @property {boolean} permissions.canCreateCompanyPresets - Has ability to create a company preset\n\t\t */\n\t\tderived: {\n\t\t\tfullName: {\n\t\t\t\tdeps: [\"first_name\", \"last_name\"],\n\t\t\t\tfn: function () {\n\t\t\t\t\treturn `${this.first_name} ${this.last_name}`;\n\t\t\t\t},\n\t\t\t},\n\n\t\t\tpermissions: {\n\t\t\t\tdeps: [\"actions\"],\n\t\t\t\tfn: function () {\n\t\t\t\t\tconst presets = {\n\t\t\t\t\t\tcanCreateCompanyPresets:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Manage Deck Presets\") > -1,\n\t\t\t\t\t\tcanCreateTeamPresets:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Manage Team Presets\") > -1,\n\t\t\t\t\t};\n\n\t\t\t\t\tconst presomanager = {\n\t\t\t\t\t\tisGlobalTemporarySlideManager:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Manage Temporary Slides\") > -1,\n\t\t\t\t\t\tisTeamTemporarySlideManager:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Manage Team Temporary Slides\") > -1,\n\n\t\t\t\t\t\tisTeamContentManager:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Manage Team Editable Text\") > -1,\n\t\t\t\t\t\tisContentCreator: this.actions.indexOf(\"Create Content\") > -1,\n\n\t\t\t\t\t\tcanAddGlobalNotes: this.actions.indexOf(\"Manage Notes\") > -1,\n\t\t\t\t\t\tcanAddTeamNotes: this.actions.indexOf(\"Manage Team Notes\") > -1,\n\t\t\t\t\t};\n\n\t\t\t\t\tpresomanager.canModifyNotes =\n\t\t\t\t\t\tpresomanager.canAddGlobalNotes || presomanager.canAddTeamNotes;\n\n\t\t\t\t\tpresomanager.canModifyTemporarySlides =\n\t\t\t\t\t\tpresomanager.isGlobalTemporarySlideManager ||\n\t\t\t\t\t\tpresomanager.isTeamTemporarySlideManager;\n\n\t\t\t\t\tpresomanager.isPresoManagerUser =\n\t\t\t\t\t\tpresomanager.canModifyTemporarySlides ||\n\t\t\t\t\t\tpresomanager.canModifyContent;\n\n\t\t\t\t\tpresomanager.canModifyContent =\n\t\t\t\t\t\tthis.actions.indexOf(\"Create Content\") > -1 ||\n\t\t\t\t\t\tthis.actions.indexOf(\"Manage Team Editable Text\") > -1;\n\n\t\t\t\t\tconst appointments = {\n\t\t\t\t\t\tcanUploadCustomSlides:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Upload Custom Slides\") > -1 &&\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Upload Custom Sections\") > -1,\n\n\t\t\t\t\t\tisContentAdmin: this.actions.indexOf(\"Administer Content\") > -1,\n\t\t\t\t\t\tisContentCreator: this.actions.indexOf(\"Create Content\") > -1,\n\n\t\t\t\t\t\ttelePresenter: this.actions.indexOf(\"TelePresent\") > -1,\n\t\t\t\t\t\tlivePresenter: this.actions.indexOf(\"LivePresent\") > -1,\n\n\t\t\t\t\t\tcanViewPresosOfOthers:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"View Presos of Others\") > -1,\n\t\t\t\t\t\tcanShare: this.actions.indexOf(\"Share preso\") > -1,\n\t\t\t\t\t\tcanPresent: this.actions.indexOf(\"Present preso\") > -1,\n\t\t\t\t\t\tcanCreateWithoutTeam:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Allow Teamless Appointments\") > -1,\n\t\t\t\t\t\tcanUseClosedCaptions:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Use Closed Captions\") > -1,\n\t\t\t\t\t\tcanCreateMutedAppointments:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Create Muted Appointments\") > -1,\n\t\t\t\t\t\tcanHandoverPresosOfOthers:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Handover Presos of Others\") > -1,\n\t\t\t\t\t\tcanChooseShareVisAnyone:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Choose Share Visibility Anyone\") > -1,\n\t\t\t\t\t\tcanChooseShareVis2fa:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Choose Share Visibility 2FA\") > -1,\n\t\t\t\t\t};\n\n\t\t\t\t\tconst customers = {\n\t\t\t\t\t\tcanCreateWithoutTeam:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Allow Teamless Customers\") > -1,\n\t\t\t\t\t};\n\n\t\t\t\t\treturn {\n\t\t\t\t\t\tpresets,\n\t\t\t\t\t\tappointments,\n\t\t\t\t\t\tpresomanager,\n\t\t\t\t\t\tcustomers,\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\n\t\tfetchJwtLogin(redirectURL = null) {\n\t\t\tconst authURL = Api.getResourceURL(\"hq-authorized-link\");\n\n\t\t\treturn SuperAgentRequest(\"GET\", authURL)\n\t\t\t\t.set(Auth.headers)\n\t\t\t\t.then((resp) => {\n\t\t\t\t\treturn resp.body.url + (redirectURL ? `&next=${redirectURL}` : \"\");\n\t\t\t\t});\n\t\t},\n\n\t\tfetch() {\n\t\t\tconst fetch = BaseModel.prototype.fetch.apply(this, arguments);\n\n\t\t\treturn fetch.tap(() => {\n\t\t\t\tif (this.self) {\n\t\t\t\t\tthis.self = false;\n\t\t\t\t}\n\n\t\t\t\tif (this.anon) {\n\t\t\t\t\tthis.anon = false;\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\n\t\turl() {\n\t\t\tconst originalUrl = BaseModel.prototype.url.call(this);\n\t\t\tif (this.self) {\n\t\t\t\treturn `${originalUrl}self/`;\n\t\t\t} else if (this.anon) {\n\t\t\t\treturn `${originalUrl}anon/`;\n\t\t\t}\n\t\t\treturn originalUrl;\n\t\t},\n\n\t\ttoServer() {\n\t\t\tconst data = {\n\t\t\t\tid: this.id,\n\t\t\t\tpreferences: this.preferences,\n\t\t\t};\n\n\t\t\tif (this.groups) {\n\t\t\t\tdata.groups = this.groups.map((group) => group.url());\n\t\t\t}\n\n\t\t\tif (!data.preferences.timezone) {\n\t\t\t\tdelete data.preferences.timezone;\n\t\t\t}\n\n\t\t\treturn data;\n\t\t},\n\t},\n);\n\nregister(\"UserModel\", UserModel);\n"],"file":"user.js"}
|
|
1
|
+
{"version":3,"sources":["../../src/models/user.js"],"names":["UserModel","BaseModel","extend","modelName","initialize","options","self","anon","props","actions","type","default","preferences","notification_sender","email_signature","app_prefs","timezone","eula_key","calendar_feed","date_joined","email","first_name","last_name","is_active","is_staff","is_superuser","is_support","is_manager","last_login","username","profile","rtms_topic","rtms_token","last_reset_request","children","tenancy","collections","groups","team_set","derived","fullName","deps","fn","permissions","presets","canCreateCompanyPresets","indexOf","canCreateTeamPresets","presomanager","isGlobalTemporarySlideManager","isTeamTemporarySlideManager","isTeamContentManager","isContentCreator","canAddGlobalNotes","canAddTeamNotes","canModifyNotes","canModifyTemporarySlides","isPresoManagerUser","canModifyContent","appointments","canUploadCustomSlides","isContentAdmin","telePresenter","livePresenter","canViewPresosOfOthers","canShare","canPresent","canCreateWithoutTeam","canUseClosedCaptions","canCreateMutedAppointments","canHandoverPresosOfOthers","canChooseShareVisAnyone","canChooseShareVis2fa","customers","signing","canUseSigning","includes","fetchJwtLogin","redirectURL","authURL","Api","getResourceURL","set","Auth","headers","then","resp","body","url","fetch","prototype","apply","arguments","tap","originalUrl","call","toServer","data","id","map","group"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,IAAMA,SAAS,GAAGC,gBAAUC,MAAV;AACxB;AAAgC;AAC/BC,EAAAA,SAAS,EAAE,OADoB;AAG/BC,EAAAA,UAH+B,wBAGoB;AAAA,QAAxCC,OAAwC,uEAA9B;AAAEC,MAAAA,IAAI,EAAE,KAAR;AAAeC,MAAAA,IAAI,EAAE;AAArB,KAA8B;AAClD,SAAKD,IAAL,GAAYD,OAAO,IAAIA,OAAO,CAACC,IAAnB,GAA0BD,OAAO,CAACC,IAAlC,GAAyC,KAArD;AACA,SAAKC,IAAL,GAAYF,OAAO,IAAIA,OAAO,CAACE,IAAnB,GAA0BF,OAAO,CAACE,IAAlC,GAAyC,KAArD;AACA,GAN8B;;AAQ/B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,EAAAA,KAAK,EAAE;AACNC,IAAAA,OAAO,EAAE;AACRC,MAAAA,IAAI,EAAE,OADE;AAERC,MAAAA,OAAO,EAAE;AA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AACP,QAAMA,KAAK,GAAGxF,gBAAUyF,SAAV,CAAoBD,KAApB,CAA0BE,KAA1B,CAAgC,IAAhC,EAAsCC,SAAtC,CAAd;;AAEA,WAAOH,KAAK,CAACI,GAAN,CAAU,YAAM;AACtB,UAAI,KAAI,CAACvF,IAAT,EAAe;AACd,QAAA,KAAI,CAACA,IAAL,GAAY,KAAZ;AACA;;AAED,UAAI,KAAI,CAACC,IAAT,EAAe;AACd,QAAA,KAAI,CAACA,IAAL,GAAY,KAAZ;AACA;AACD,KARM,CAAP;AASA,GAzM8B;AA2M/BiF,EAAAA,GA3M+B,iBA2MzB;AACL,QAAMM,WAAW,GAAG7F,gBAAUyF,SAAV,CAAoBF,GAApB,CAAwBO,IAAxB,CAA6B,IAA7B,CAApB;;AACA,QAAI,KAAKzF,IAAT,EAAe;AACd,uBAAUwF,WAAV;AACA,KAFD,MAEO,IAAI,KAAKvF,IAAT,EAAe;AACrB,uBAAUuF,WAAV;AACA;;AACD,WAAOA,WAAP;AACA,GAnN8B;AAqN/BE,EAAAA,QArN+B,sBAqNpB;AACV,QAAMC,IAAI,GAAG;AACZC,MAAAA,EAAE,EAAE,KAAKA,EADG;AAEZtF,MAAAA,WAAW,EAAE,KAAKA;AAFN,KAAb;;AAKA,QAAI,KAAKyB,MAAT,EAAiB;AAChB4D,MAAAA,IAAI,CAAC5D,MAAL,GAAc,KAAKA,MAAL,CAAY8D,GAAZ,CAAgB,UAACC,KAAD;AAAA,eAAWA,KAAK,CAACZ,GAAN,EAAX;AAAA,OAAhB,CAAd;AACA;;AAED,QAAI,CAACS,IAAI,CAACrF,WAAL,CAAiBI,QAAtB,EAAgC;AAC/B,aAAOiF,IAAI,CAACrF,WAAL,CAAiBI,QAAxB;AACA;;AAED,WAAOiF,IAAP;AACA;AApO8B,CADR,CAAlB;;;AAyOP,6BAAS,WAAT,EAAsBjG,SAAtB","sourcesContent":["import \"./tenancy.js\";\nimport \"../collections/groups.js\";\nimport \"../collections/teams.js\";\n\nimport { Api } from \"../api.js\";\nimport { Auth } from \"../auth.js\";\nimport { BaseModel } from \"./base.js\";\nimport SuperAgentRequest from \"superagent-bluebird-promise\";\nimport { register } from \"../state-register.js\";\n\n/**\n\n * @constructor\n * @alias models.UserModel\n * @extends models.BaseModel\n */\nexport const UserModel = BaseModel.extend(\n\t/** @lends models.UserModel# */ {\n\t\tmodelName: \"users\",\n\n\t\tinitialize(options = { self: false, anon: false }) {\n\t\t\tthis.self = options && options.self ? options.self : false;\n\t\t\tthis.anon = options && options.anon ? options.anon : false;\n\t\t},\n\n\t\t/**\n\t\t * @property {string[]} actions\n\t\t * @property {date} date_joined\n\t\t * @property {string} email\n\t\t * @property {string} first_name\n\t\t * @property {string} last_name\n\t\t * @property {boolean} is_active\n\t\t * @property {boolean} is_staff\n\t\t * @property {boolean} is_superuser\n\t\t * @property {boolean} is_support\n\t\t * @property {boolean} is_manager\n\t\t * @property {date} last_login\n\t\t * @property {string} username\n\t\t * @property {object} preferences\n\t\t * @property {object} profile\n\t\t * @property {string} rtms_topic\n\t\t * @property {string} rtms_token\n\t\t * @property {date} last_reset_request\n\t\t */\n\t\tprops: {\n\t\t\tactions: {\n\t\t\t\ttype: \"array\",\n\t\t\t\tdefault: () => [],\n\t\t\t},\n\t\t\tpreferences: {\n\t\t\t\ttype: \"object\",\n\t\t\t\tdefault: () => {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tnotification_sender: \"default\",\n\t\t\t\t\t\temail_signature: \"\",\n\t\t\t\t\t\tapp_prefs: {},\n\t\t\t\t\t\ttimezone: \"\",\n\t\t\t\t\t\teula_key: \"\",\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t},\n\t\t\tcalendar_feed: \"string\",\n\t\t\tdate_joined: \"date\",\n\t\t\temail: \"string\",\n\t\t\tfirst_name: \"string\",\n\t\t\tlast_name: \"string\",\n\t\t\tis_active: \"boolean\",\n\t\t\tis_staff: \"boolean\",\n\t\t\tis_superuser: \"boolean\",\n\t\t\tis_support: \"boolean\",\n\t\t\tis_manager: \"boolean\",\n\t\t\tlast_login: \"date\",\n\t\t\tusername: \"string\",\n\t\t\tprofile: \"object\",\n\t\t\trtms_topic: \"string\",\n\t\t\trtms_token: \"string\",\n\t\t\tlast_reset_request: \"string\",\n\t\t},\n\n\t\t/**\n\t\t * @property {models.TenancyModel} tenancy\n\t\t */\n\t\tchildren: {\n\t\t\ttenancy: \"TenancyModel\",\n\t\t},\n\n\t\t/**\n\t\t * @property {collections.GroupCollection} groups\n\t\t * @property {collections.TeamCollection} team_set\n\t\t */\n\t\tcollections: {\n\t\t\tgroups: \"GroupCollection\",\n\t\t\tteam_set: \"TeamCollection\",\n\t\t},\n\n\t\t/**\n\t\t * @property {string} fullName - The full name of the user\n\t\t * @property {object} permissions - The one place for testing user permissions\n\t\t * @property {boolean} permissions.canCreateCompanyPresets - Has ability to create a company preset\n\t\t */\n\t\tderived: {\n\t\t\tfullName: {\n\t\t\t\tdeps: [\"first_name\", \"last_name\"],\n\t\t\t\tfn: function () {\n\t\t\t\t\treturn `${this.first_name} ${this.last_name}`;\n\t\t\t\t},\n\t\t\t},\n\n\t\t\tpermissions: {\n\t\t\t\tdeps: [\"actions\"],\n\t\t\t\tfn: function () {\n\t\t\t\t\tconst presets = {\n\t\t\t\t\t\tcanCreateCompanyPresets:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Manage Deck Presets\") > -1,\n\t\t\t\t\t\tcanCreateTeamPresets:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Manage Team Presets\") > -1,\n\t\t\t\t\t};\n\n\t\t\t\t\tconst presomanager = {\n\t\t\t\t\t\tisGlobalTemporarySlideManager:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Manage Temporary Slides\") > -1,\n\t\t\t\t\t\tisTeamTemporarySlideManager:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Manage Team Temporary Slides\") > -1,\n\n\t\t\t\t\t\tisTeamContentManager:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Manage Team Editable Text\") > -1,\n\t\t\t\t\t\tisContentCreator: this.actions.indexOf(\"Create Content\") > -1,\n\n\t\t\t\t\t\tcanAddGlobalNotes: this.actions.indexOf(\"Manage Notes\") > -1,\n\t\t\t\t\t\tcanAddTeamNotes: this.actions.indexOf(\"Manage Team Notes\") > -1,\n\t\t\t\t\t};\n\n\t\t\t\t\tpresomanager.canModifyNotes =\n\t\t\t\t\t\tpresomanager.canAddGlobalNotes || presomanager.canAddTeamNotes;\n\n\t\t\t\t\tpresomanager.canModifyTemporarySlides =\n\t\t\t\t\t\tpresomanager.isGlobalTemporarySlideManager ||\n\t\t\t\t\t\tpresomanager.isTeamTemporarySlideManager;\n\n\t\t\t\t\tpresomanager.isPresoManagerUser =\n\t\t\t\t\t\tpresomanager.canModifyTemporarySlides ||\n\t\t\t\t\t\tpresomanager.canModifyContent;\n\n\t\t\t\t\tpresomanager.canModifyContent =\n\t\t\t\t\t\tthis.actions.indexOf(\"Create Content\") > -1 ||\n\t\t\t\t\t\tthis.actions.indexOf(\"Manage Team Editable Text\") > -1;\n\n\t\t\t\t\tconst appointments = {\n\t\t\t\t\t\tcanUploadCustomSlides:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Upload Custom Slides\") > -1 &&\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Upload Custom Sections\") > -1,\n\n\t\t\t\t\t\tisContentAdmin: this.actions.indexOf(\"Administer Content\") > -1,\n\t\t\t\t\t\tisContentCreator: this.actions.indexOf(\"Create Content\") > -1,\n\n\t\t\t\t\t\ttelePresenter: this.actions.indexOf(\"TelePresent\") > -1,\n\t\t\t\t\t\tlivePresenter: this.actions.indexOf(\"LivePresent\") > -1,\n\n\t\t\t\t\t\tcanViewPresosOfOthers:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"View Presos of Others\") > -1,\n\t\t\t\t\t\tcanShare: this.actions.indexOf(\"Share preso\") > -1,\n\t\t\t\t\t\tcanPresent: this.actions.indexOf(\"Present preso\") > -1,\n\t\t\t\t\t\tcanCreateWithoutTeam:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Allow Teamless Appointments\") > -1,\n\t\t\t\t\t\tcanUseClosedCaptions:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Use Closed Captions\") > -1,\n\t\t\t\t\t\tcanCreateMutedAppointments:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Create Muted Appointments\") > -1,\n\t\t\t\t\t\tcanHandoverPresosOfOthers:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Handover Presos of Others\") > -1,\n\t\t\t\t\t\tcanChooseShareVisAnyone:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Choose Share Visibility Anyone\") > -1,\n\t\t\t\t\t\tcanChooseShareVis2fa:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Choose Share Visibility 2FA\") > -1,\n\t\t\t\t\t};\n\n\t\t\t\t\tconst customers = {\n\t\t\t\t\t\tcanCreateWithoutTeam:\n\t\t\t\t\t\t\tthis.actions.indexOf(\"Allow Teamless Customers\") > -1,\n\t\t\t\t\t};\n\n\t\t\t\t\tconst signing = {\n\t\t\t\t\t\tcanUseSigning: this.actions.includes(\"Use Signing\"),\n\t\t\t\t\t};\n\n\t\t\t\t\treturn {\n\t\t\t\t\t\tpresets,\n\t\t\t\t\t\tappointments,\n\t\t\t\t\t\tpresomanager,\n\t\t\t\t\t\tcustomers,\n\t\t\t\t\t\tsigning,\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\n\t\tfetchJwtLogin(redirectURL = null) {\n\t\t\tconst authURL = Api.getResourceURL(\"hq-authorized-link\");\n\n\t\t\treturn SuperAgentRequest(\"GET\", authURL)\n\t\t\t\t.set(Auth.headers)\n\t\t\t\t.then((resp) => {\n\t\t\t\t\treturn resp.body.url + (redirectURL ? `&next=${redirectURL}` : \"\");\n\t\t\t\t});\n\t\t},\n\n\t\tfetch() {\n\t\t\tconst fetch = BaseModel.prototype.fetch.apply(this, arguments);\n\n\t\t\treturn fetch.tap(() => {\n\t\t\t\tif (this.self) {\n\t\t\t\t\tthis.self = false;\n\t\t\t\t}\n\n\t\t\t\tif (this.anon) {\n\t\t\t\t\tthis.anon = false;\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\n\t\turl() {\n\t\t\tconst originalUrl = BaseModel.prototype.url.call(this);\n\t\t\tif (this.self) {\n\t\t\t\treturn `${originalUrl}self/`;\n\t\t\t} else if (this.anon) {\n\t\t\t\treturn `${originalUrl}anon/`;\n\t\t\t}\n\t\t\treturn originalUrl;\n\t\t},\n\n\t\ttoServer() {\n\t\t\tconst data = {\n\t\t\t\tid: this.id,\n\t\t\t\tpreferences: this.preferences,\n\t\t\t};\n\n\t\t\tif (this.groups) {\n\t\t\t\tdata.groups = this.groups.map((group) => group.url());\n\t\t\t}\n\n\t\t\tif (!data.preferences.timezone) {\n\t\t\t\tdelete data.preferences.timezone;\n\t\t\t}\n\n\t\t\treturn data;\n\t\t},\n\t},\n);\n\nregister(\"UserModel\", UserModel);\n"],"file":"user.js"}
|
package/package.json
CHANGED
|
@@ -111,6 +111,12 @@ export const ManifestJSONModel = BaseModel.extend(
|
|
|
111
111
|
};
|
|
112
112
|
},
|
|
113
113
|
},
|
|
114
|
+
requires_user_connectivity: {
|
|
115
|
+
type: "array",
|
|
116
|
+
default: () => {
|
|
117
|
+
return [];
|
|
118
|
+
},
|
|
119
|
+
},
|
|
114
120
|
},
|
|
115
121
|
|
|
116
122
|
derived: {
|
|
@@ -367,6 +373,11 @@ ManifestJSONModel.createFromProject = function (projectFile) {
|
|
|
367
373
|
};
|
|
368
374
|
}
|
|
369
375
|
|
|
376
|
+
if (projectFile.requires_user_connectivity) {
|
|
377
|
+
manifest.requires_user_connectivity =
|
|
378
|
+
projectFile.requires_user_connectivity;
|
|
379
|
+
}
|
|
380
|
+
|
|
370
381
|
// For all new decks going forward, this should be set to true.
|
|
371
382
|
// This means we validate that a fieldset field has a value. Before
|
|
372
383
|
// this change, it was possible to save with a required field unfilled.
|
package/src/models/user.js
CHANGED
|
@@ -179,11 +179,16 @@ export const UserModel = BaseModel.extend(
|
|
|
179
179
|
this.actions.indexOf("Allow Teamless Customers") > -1,
|
|
180
180
|
};
|
|
181
181
|
|
|
182
|
+
const signing = {
|
|
183
|
+
canUseSigning: this.actions.includes("Use Signing"),
|
|
184
|
+
};
|
|
185
|
+
|
|
182
186
|
return {
|
|
183
187
|
presets,
|
|
184
188
|
appointments,
|
|
185
189
|
presomanager,
|
|
186
190
|
customers,
|
|
191
|
+
signing,
|
|
187
192
|
};
|
|
188
193
|
},
|
|
189
194
|
},
|