@adobe/spacecat-shared-data-access 1.9.4 → 1.9.6
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/CHANGELOG.md +248 -0
- package/package.json +1 -1
- package/src/models/organization.js +2 -0
- package/src/models/site.js +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,251 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-data-access-v1.9.6](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.9.5...@adobe/spacecat-shared-data-access-v1.9.6) (2024-01-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* missing module releaserc ([0ec70ba](https://github.com/adobe/spacecat-shared/commit/0ec70ba171edd66f4aa4e3770cc9b2a3e29d752c))
|
|
7
|
+
* monorepo extends overwrites config ([#99](https://github.com/adobe/spacecat-shared/issues/99)) ([fea357f](https://github.com/adobe/spacecat-shared/commit/fea357f105d96e3d9dbf87687c26bc34b21f8b5d))
|
|
8
|
+
* set latest version for semantic ([#94](https://github.com/adobe/spacecat-shared/issues/94)) ([932e11f](https://github.com/adobe/spacecat-shared/commit/932e11fa4128013a13dcdbd32b378ce448d449f6))
|
|
9
|
+
|
|
10
|
+
# 1.0.0 (2024-01-22)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* add code-ql ([312af05](https://github.com/adobe/spacecat-shared/commit/312af0553ee001736f4625bea7498bf44268f5d5))
|
|
16
|
+
* add missing pattern to interface ([#72](https://github.com/adobe/spacecat-shared/issues/72)) ([0eacbff](https://github.com/adobe/spacecat-shared/commit/0eacbff39dbc12d604e40ae94285533f7804ca0a))
|
|
17
|
+
* add package exports to npm module ([#4](https://github.com/adobe/spacecat-shared/issues/4)) ([7236d40](https://github.com/adobe/spacecat-shared/commit/7236d408c560e89a28972b6c695a6919e72854e7))
|
|
18
|
+
* allow sorting for get audits for site ([#41](https://github.com/adobe/spacecat-shared/issues/41)) ([3664c97](https://github.com/adobe/spacecat-shared/commit/3664c97bd63d4f10e260582455e3763da60399dd))
|
|
19
|
+
* allow update of github URL ([#40](https://github.com/adobe/spacecat-shared/issues/40)) ([21da989](https://github.com/adobe/spacecat-shared/commit/21da9893fcb9c971c1c6a4e1271133188351c155))
|
|
20
|
+
* allow use of index for getItem ([#10](https://github.com/adobe/spacecat-shared/issues/10)) ([9a984d1](https://github.com/adobe/spacecat-shared/commit/9a984d176f02444409318a5f4287d75249b2d83a))
|
|
21
|
+
* audit result scores init, test ([#89](https://github.com/adobe/spacecat-shared/issues/89)) ([96f829c](https://github.com/adobe/spacecat-shared/commit/96f829c908e38b2e5f303eee83da2488f8076a0b))
|
|
22
|
+
* auto-remove undefined values ([#64](https://github.com/adobe/spacecat-shared/issues/64)) ([ce9abac](https://github.com/adobe/spacecat-shared/commit/ce9abac0f99471616bd2fb971e18953791e364c3))
|
|
23
|
+
* bogus change to force release ([e77e830](https://github.com/adobe/spacecat-shared/commit/e77e8305c96ac2504aeb22af44d45cb4acbcae56))
|
|
24
|
+
* createdAt test ([#88](https://github.com/adobe/spacecat-shared/issues/88)) ([ac6a5ba](https://github.com/adobe/spacecat-shared/commit/ac6a5bab9ee45a2840681f291a13f23a3eb97e25))
|
|
25
|
+
* **deps:** update aws-sdk-js-v3 monorepo ([#16](https://github.com/adobe/spacecat-shared/issues/16)) ([e60296a](https://github.com/adobe/spacecat-shared/commit/e60296a78105079527e80c802c60de5d28ebd207))
|
|
26
|
+
* **deps:** update aws-sdk-js-v3 monorepo to v3.465.0 ([#19](https://github.com/adobe/spacecat-shared/issues/19)) ([612c257](https://github.com/adobe/spacecat-shared/commit/612c257870dc171d32c4ca5f8c2e48f9f77f8198))
|
|
27
|
+
* **deps:** update aws-sdk-js-v3 monorepo to v3.477.0 ([#68](https://github.com/adobe/spacecat-shared/issues/68)) ([492913f](https://github.com/adobe/spacecat-shared/commit/492913f0011d557b7c91ba631c13ced171bc2ce9))
|
|
28
|
+
* **deps:** update dependency uuid to v9 ([#22](https://github.com/adobe/spacecat-shared/issues/22)) ([456bfe8](https://github.com/adobe/spacecat-shared/commit/456bfe8e253d3589304624ba2281d51a4c9e4d22))
|
|
29
|
+
* **deps:** update external fixes ([#71](https://github.com/adobe/spacecat-shared/issues/71)) ([b9a6679](https://github.com/adobe/spacecat-shared/commit/b9a667966e7b0f013f46c62f6cc4a85f80623c61))
|
|
30
|
+
* **deps:** update external fixes ([#76](https://github.com/adobe/spacecat-shared/issues/76)) ([5b74623](https://github.com/adobe/spacecat-shared/commit/5b74623a4accfb601b607170f9bd67fb380f5c84))
|
|
31
|
+
* **deps:** update external fixes ([#81](https://github.com/adobe/spacecat-shared/issues/81)) ([67cf21c](https://github.com/adobe/spacecat-shared/commit/67cf21c548d036de45221e118ff3bc0e7b26a692))
|
|
32
|
+
* **deps:** update external fixes ([#90](https://github.com/adobe/spacecat-shared/issues/90)) ([df8161e](https://github.com/adobe/spacecat-shared/commit/df8161e4be87a5a3035729ce94388a8ccaf1630b))
|
|
33
|
+
* distinguish lhs-mobile vs lhs-desktop ([#27](https://github.com/adobe/spacecat-shared/issues/27)) ([18fd1b1](https://github.com/adobe/spacecat-shared/commit/18fd1b18ae400c32bbb3a175f7d6a6cde104f4a1))
|
|
34
|
+
* export getLatestAuditsForSite ([#39](https://github.com/adobe/spacecat-shared/issues/39)) ([e9c9130](https://github.com/adobe/spacecat-shared/commit/e9c9130b940122714be76e3df6e96e44bbde5348))
|
|
35
|
+
* export rumapiclient as default ([#52](https://github.com/adobe/spacecat-shared/issues/52)) ([7c5d2f5](https://github.com/adobe/spacecat-shared/commit/7c5d2f56a5822ed93d63c894ded766924905c797))
|
|
36
|
+
* get audit no query ([#34](https://github.com/adobe/spacecat-shared/issues/34)) ([8fadd0a](https://github.com/adobe/spacecat-shared/commit/8fadd0a21a1e0cc232a06ccf805d1ac5c946b8be))
|
|
37
|
+
* get latest audits with delivery type ([#80](https://github.com/adobe/spacecat-shared/issues/80)) ([d823773](https://github.com/adobe/spacecat-shared/commit/d823773d738ebddf2790356750827ae74e66b052))
|
|
38
|
+
* getSitesByDeliveryType signature ([#78](https://github.com/adobe/spacecat-shared/issues/78)) ([2b6c0fd](https://github.com/adobe/spacecat-shared/commit/2b6c0fd3e603eb3c688a45ae9ab78baf88a508ef))
|
|
39
|
+
* github org ([02f86c3](https://github.com/adobe/spacecat-shared/commit/02f86c351b2b1ab99ce5aca7fd5e6af2246c0efd))
|
|
40
|
+
* github semantic plugin config ([db5a14a](https://github.com/adobe/spacecat-shared/commit/db5a14af6d09333cea10af8624e07454bbeac838))
|
|
41
|
+
* github token reference ([8ac46cf](https://github.com/adobe/spacecat-shared/commit/8ac46cfa7dd8e0e2cc7b8bfa2f07e186055ce417))
|
|
42
|
+
* GSI sort key when error ([#62](https://github.com/adobe/spacecat-shared/issues/62)) ([dbb6a91](https://github.com/adobe/spacecat-shared/commit/dbb6a91f75fa9492a621de7b258cbebe38fe3ac7))
|
|
43
|
+
* include audit ref and audited at ([#75](https://github.com/adobe/spacecat-shared/issues/75)) ([e573c90](https://github.com/adobe/spacecat-shared/commit/e573c903851d88c7293caa5e5a9af763987edb3a))
|
|
44
|
+
* include sites without latest audits ([#45](https://github.com/adobe/spacecat-shared/issues/45)) ([b843190](https://github.com/adobe/spacecat-shared/commit/b843190da09916832a743d6fc4bf83e804b61912))
|
|
45
|
+
* initialize scores as an empty object (SITES-18417) ([b43b96d](https://github.com/adobe/spacecat-shared/commit/b43b96d5636e5f91bd08ef81d22f2372b02d2809))
|
|
46
|
+
* initialize scores as an empty object (SITES-18417) ([#87](https://github.com/adobe/spacecat-shared/issues/87)) ([eb38e32](https://github.com/adobe/spacecat-shared/commit/eb38e3298228edb1d996fa633bff4af4dcbf69db))
|
|
47
|
+
* key validation ([#7](https://github.com/adobe/spacecat-shared/issues/7)) ([4283e14](https://github.com/adobe/spacecat-shared/commit/4283e1418f78b8d610637b90bd504e47ae3bc8ee))
|
|
48
|
+
* latest-audits sort key ([#33](https://github.com/adobe/spacecat-shared/issues/33)) ([21dc14e](https://github.com/adobe/spacecat-shared/commit/21dc14e75e8aad641f1c99330243a3102e8de465))
|
|
49
|
+
* make RUMOptions optional ([6c2825b](https://github.com/adobe/spacecat-shared/commit/6c2825b49977ce50bc998258e9f23c73cc822b22))
|
|
50
|
+
* missing module releaserc ([0ec70ba](https://github.com/adobe/spacecat-shared/commit/0ec70ba171edd66f4aa4e3770cc9b2a3e29d752c))
|
|
51
|
+
* move to main.yml ([89a8c69](https://github.com/adobe/spacecat-shared/commit/89a8c6969a576b17544345e0975d97b52c3c8ebc))
|
|
52
|
+
* no undefined for putItem ([#43](https://github.com/adobe/spacecat-shared/issues/43)) ([283f229](https://github.com/adobe/spacecat-shared/commit/283f2299956c53ea77206a973210c3ecc9475180))
|
|
53
|
+
* npm token (again) ([9934572](https://github.com/adobe/spacecat-shared/commit/99345729cc40e48dd5789ec54c30acca69c57516))
|
|
54
|
+
* npm token renovate ([b6656e7](https://github.com/adobe/spacecat-shared/commit/b6656e7d32b5b9432b72944fa5aef44d1cd82259))
|
|
55
|
+
* npmToken for renovate ([155a5f3](https://github.com/adobe/spacecat-shared/commit/155a5f333dfe95eb729f5fa271d351b5f5493405))
|
|
56
|
+
* package name to "adobe" ([475434e](https://github.com/adobe/spacecat-shared/commit/475434e6619c2128ba1a8308a4eed23cf3d40691))
|
|
57
|
+
* pass ascending param ([#42](https://github.com/adobe/spacecat-shared/issues/42)) ([930ae6b](https://github.com/adobe/spacecat-shared/commit/930ae6b09825cf37de90db0a4331eebe5f58a70e))
|
|
58
|
+
* re-set node 20 ([ef24765](https://github.com/adobe/spacecat-shared/commit/ef2476591d7eed34f2d6726c60faab285c3706e2))
|
|
59
|
+
* reduce log output of putitem ([#31](https://github.com/adobe/spacecat-shared/issues/31)) ([29d1496](https://github.com/adobe/spacecat-shared/commit/29d149661c56f2cef0c7d02d39bc8aad89475afa))
|
|
60
|
+
* remove .keep ([4f9319f](https://github.com/adobe/spacecat-shared/commit/4f9319fe77138684d2a81ac29a1bdfa34575d238))
|
|
61
|
+
* remove unneeded import (force release) ([49964f9](https://github.com/adobe/spacecat-shared/commit/49964f99906d5a0fafeb68b460cb19f98a51fc86))
|
|
62
|
+
* remove unsupported codeql workflow ([467bd3b](https://github.com/adobe/spacecat-shared/commit/467bd3b47c35280f6dc2e6bd897ec61976df0169))
|
|
63
|
+
* rename circle ci ([c12906e](https://github.com/adobe/spacecat-shared/commit/c12906ee6a9e572e2763babe60c276dd49310d17))
|
|
64
|
+
* rename NPM token ([fb23bf1](https://github.com/adobe/spacecat-shared/commit/fb23bf1f17ca393cbef1faaadfc42b4526b30589))
|
|
65
|
+
* renovate ([1a16980](https://github.com/adobe/spacecat-shared/commit/1a16980d5c78530a10dfbd7513ce3b338ffb5e7a))
|
|
66
|
+
* repo reference ([881487d](https://github.com/adobe/spacecat-shared/commit/881487dce4c840ac2bf02a285f17cac511d39c88))
|
|
67
|
+
* roll-back esm monorepo ([ab77518](https://github.com/adobe/spacecat-shared/commit/ab775187dc79a7f2cdb0ca4fa31198202be78143))
|
|
68
|
+
* roll-back node 20 for github workflow ([876e26c](https://github.com/adobe/spacecat-shared/commit/876e26c343fbf5121bcfed0827e551f0973c1b83))
|
|
69
|
+
* rollback test change for node 18 ([ff981fb](https://github.com/adobe/spacecat-shared/commit/ff981fbb658cba611a188a57a1b1c79f1ba8e89a))
|
|
70
|
+
* rum domain key env var ([b52ead5](https://github.com/adobe/spacecat-shared/commit/b52ead5217f20cb48f2026bf86d04d72671f81c5))
|
|
71
|
+
* semantic-release scripts ([6078334](https://github.com/adobe/spacecat-shared/commit/607833457210c50342712fb8a90c2b711915ffec))
|
|
72
|
+
* set default organization ([#92](https://github.com/adobe/spacecat-shared/issues/92)) ([ac7e70c](https://github.com/adobe/spacecat-shared/commit/ac7e70c65f643c2f52730c3d5da4a0c4be282632))
|
|
73
|
+
* set github_token correctly ([cf6a8aa](https://github.com/adobe/spacecat-shared/commit/cf6a8aa75a17fbc82a3f3cd9499f26cbb945c8aa))
|
|
74
|
+
* set latest version for semantic ([#94](https://github.com/adobe/spacecat-shared/issues/94)) ([932e11f](https://github.com/adobe/spacecat-shared/commit/932e11fa4128013a13dcdbd32b378ce448d449f6))
|
|
75
|
+
* set package version to semantic, remove dev deps ([bf62c5f](https://github.com/adobe/spacecat-shared/commit/bf62c5fe013dbbb7425eb21cffa23e7f01322aee))
|
|
76
|
+
* set pre-commit hook executable ([3ce9a6c](https://github.com/adobe/spacecat-shared/commit/3ce9a6ccfa2950c7401c11a8846b38f2ab4baadb))
|
|
77
|
+
* set to semantic-release versioning ([9209799](https://github.com/adobe/spacecat-shared/commit/92097995b657207996dd6a35277fdfcd3f3e8fb9))
|
|
78
|
+
* sort order sites with latest audits ([#46](https://github.com/adobe/spacecat-shared/issues/46)) ([8da2bf1](https://github.com/adobe/spacecat-shared/commit/8da2bf16b904ced6787d8c56ba2b4b72678687a0))
|
|
79
|
+
* switch defaults to dev (force release) ([b85d54c](https://github.com/adobe/spacecat-shared/commit/b85d54ca7430a4e54b49d112429242c81ff55714))
|
|
80
|
+
* type def / jsdoc ([#61](https://github.com/adobe/spacecat-shared/issues/61)) ([078f9e6](https://github.com/adobe/spacecat-shared/commit/078f9e6855d3f475f3a746561758aaefb5cb3c79))
|
|
81
|
+
* typo ([9167cf3](https://github.com/adobe/spacecat-shared/commit/9167cf3ac70a998aa92aaef24e080cd8147a70e9))
|
|
82
|
+
* update dynamo client ([#65](https://github.com/adobe/spacecat-shared/issues/65)) ([cc09041](https://github.com/adobe/spacecat-shared/commit/cc09041200dfe23c0a83c384fc9695ac972564e9))
|
|
83
|
+
* update node to lts/20, semantic release, misc ([#91](https://github.com/adobe/spacecat-shared/issues/91)) ([099662a](https://github.com/adobe/spacecat-shared/commit/099662af314866852313e250cecead2404e52f42))
|
|
84
|
+
* update readme (force release) ([#95](https://github.com/adobe/spacecat-shared/issues/95)) ([8dd61cd](https://github.com/adobe/spacecat-shared/commit/8dd61cd3eda24af6915dc19ba42bbd4586b18962))
|
|
85
|
+
* update readme (test release ([#93](https://github.com/adobe/spacecat-shared/issues/93)) ([d5142d0](https://github.com/adobe/spacecat-shared/commit/d5142d06b912beb6cba01c27aa6cafb04ab0baf7))
|
|
86
|
+
* use correct doc client ([#9](https://github.com/adobe/spacecat-shared/issues/9)) ([d052b16](https://github.com/adobe/spacecat-shared/commit/d052b16dc6baf65efe83e34fe82d50265f6ae751))
|
|
87
|
+
* use getItem for latest audit ([#35](https://github.com/adobe/spacecat-shared/issues/35)) ([6e4a87e](https://github.com/adobe/spacecat-shared/commit/6e4a87ea2d515f632b34278a8cc1ffd51d692a16))
|
|
88
|
+
* use new aem datadesk ui for the backlinks ([#79](https://github.com/adobe/spacecat-shared/issues/79)) ([526b69c](https://github.com/adobe/spacecat-shared/commit/526b69cc8067f883f2ce0ab10c712b8ca094c81d))
|
|
89
|
+
* variouss ([ea9d44f](https://github.com/adobe/spacecat-shared/commit/ea9d44f6071c1a53d2c31515966e7cdf44be7ae9))
|
|
90
|
+
* wrap scores ([#28](https://github.com/adobe/spacecat-shared/issues/28)) ([4733a93](https://github.com/adobe/spacecat-shared/commit/4733a93d2db087dd57f94955a2101e5a4bb74ce2))
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Features
|
|
94
|
+
|
|
95
|
+
* add audit config ([#59](https://github.com/adobe/spacecat-shared/issues/59)) ([f851862](https://github.com/adobe/spacecat-shared/commit/f8518623a8b8e4e337b3c44a16b65724a953596a))
|
|
96
|
+
* add broken-backlinks audit type (SITES-18417) ([#86](https://github.com/adobe/spacecat-shared/issues/86)) ([b16c366](https://github.com/adobe/spacecat-shared/commit/b16c3667808221958ff4a526512cb89c3cd0bbcb))
|
|
97
|
+
* add data access module ([#11](https://github.com/adobe/spacecat-shared/issues/11)) ([cdbfff3](https://github.com/adobe/spacecat-shared/commit/cdbfff3961cbfc5702b832c386e3ccfd8572b439))
|
|
98
|
+
* add dynamo and utils modules ([#3](https://github.com/adobe/spacecat-shared/issues/3)) ([5e2e605](https://github.com/adobe/spacecat-shared/commit/5e2e6059648f4f554168dabeab737f6a09d8a050))
|
|
99
|
+
* add guards and use spacecat-shared-utils ([#6](https://github.com/adobe/spacecat-shared/issues/6)) ([27143cf](https://github.com/adobe/spacecat-shared/commit/27143cf2d4a439f1b5904e62756e59e501b3f67d))
|
|
100
|
+
* add isArray function ([eeb45a6](https://github.com/adobe/spacecat-shared/commit/eeb45a6784c6406403d0a59b65ba873a107c654c))
|
|
101
|
+
* add rum api calls to shared ([56cccd0](https://github.com/adobe/spacecat-shared/commit/56cccd0f498eaca6a4bb35a6b64d5f0dbe68a096))
|
|
102
|
+
* add support for 404 report backlink ([0d622de](https://github.com/adobe/spacecat-shared/commit/0d622de241b51f0df625679591dd5168b5b070a7))
|
|
103
|
+
* allow configuration from ctx / add missing fields ([#24](https://github.com/adobe/spacecat-shared/issues/24)) ([6959f89](https://github.com/adobe/spacecat-shared/commit/6959f895ed9b167f421b201f856ef871bd2a335c))
|
|
104
|
+
* data model for organizations ([944be83](https://github.com/adobe/spacecat-shared/commit/944be83c9f19e3acee9bb17352b3058fe6578a69))
|
|
105
|
+
* http utils package ([#51](https://github.com/adobe/spacecat-shared/issues/51)) ([84cd91a](https://github.com/adobe/spacecat-shared/commit/84cd91ae4225455327116169f5b040cc9adc1c2e))
|
|
106
|
+
* http-utils functions ([#49](https://github.com/adobe/spacecat-shared/issues/49)) ([20e98fa](https://github.com/adobe/spacecat-shared/commit/20e98faa75d2f439ea5e671937f78bea706ec5d7))
|
|
107
|
+
* introduce getSiteByID ([#36](https://github.com/adobe/spacecat-shared/issues/36)) ([5677f76](https://github.com/adobe/spacecat-shared/commit/5677f76d11d97f2a2afd878e0ada7cad22fd1f03))
|
|
108
|
+
* resolve secrets name ([#44](https://github.com/adobe/spacecat-shared/issues/44)) ([8c7604d](https://github.com/adobe/spacecat-shared/commit/8c7604da6b36f450a9054fa93c6c469c1f47319b))
|
|
109
|
+
* rum api client ([#48](https://github.com/adobe/spacecat-shared/issues/48)) ([ccfa187](https://github.com/adobe/spacecat-shared/commit/ccfa187a45f35e57085ac241ff156c0b9418592d))
|
|
110
|
+
* set isLiveToggledAt ([#85](https://github.com/adobe/spacecat-shared/issues/85)) ([cefc093](https://github.com/adobe/spacecat-shared/commit/cefc0938385b9fa079d24c24f03b21651a0999cc))
|
|
111
|
+
* site delivery type ([#77](https://github.com/adobe/spacecat-shared/issues/77)) ([005bc38](https://github.com/adobe/spacecat-shared/commit/005bc388ed6ab0f82c8b0f562d4c1f4c0d1e2894))
|
|
112
|
+
* store previous latest audit result ([#74](https://github.com/adobe/spacecat-shared/issues/74)) ([4663c43](https://github.com/adobe/spacecat-shared/commit/4663c4344e260f85c4e64691e0685260d36629e5))
|
|
113
|
+
* test ([bd3cc5d](https://github.com/adobe/spacecat-shared/commit/bd3cc5df89ccde75b86b000e8495893f4b099b5b))
|
|
114
|
+
* update audit config ([#63](https://github.com/adobe/spacecat-shared/issues/63)) ([00a468e](https://github.com/adobe/spacecat-shared/commit/00a468e9404676212ec9441c8a7fccf1a93c636f))
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### Reverts
|
|
118
|
+
|
|
119
|
+
* Revert "fix: allow use of index for getItem (#10)" (#15) ([ad03176](https://github.com/adobe/spacecat-shared/commit/ad0317625074a26a4600d7e464a53c3b6dd78fe4)), closes [#10](https://github.com/adobe/spacecat-shared/issues/10) [#15](https://github.com/adobe/spacecat-shared/issues/15)
|
|
120
|
+
|
|
121
|
+
## [1.0.2](https://github.com/adobe/spacecat-shared/compare/v1.0.1...v1.0.2) (2024-01-22)
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
### Bug Fixes
|
|
125
|
+
|
|
126
|
+
* set latest version for semantic ([#94](https://github.com/adobe/spacecat-shared/issues/94)) ([932e11f](https://github.com/adobe/spacecat-shared/commit/932e11fa4128013a13dcdbd32b378ce448d449f6))
|
|
127
|
+
|
|
128
|
+
## [1.0.1](https://github.com/adobe/spacecat-shared/compare/v1.0.0...v1.0.1) (2024-01-22)
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
### Bug Fixes
|
|
132
|
+
|
|
133
|
+
* update readme (test release ([#93](https://github.com/adobe/spacecat-shared/issues/93)) ([d5142d0](https://github.com/adobe/spacecat-shared/commit/d5142d06b912beb6cba01c27aa6cafb04ab0baf7))
|
|
134
|
+
|
|
135
|
+
# 1.0.0 (2024-01-22)
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
### Bug Fixes
|
|
139
|
+
|
|
140
|
+
* add code-ql ([312af05](https://github.com/adobe/spacecat-shared/commit/312af0553ee001736f4625bea7498bf44268f5d5))
|
|
141
|
+
* add missing pattern to interface ([#72](https://github.com/adobe/spacecat-shared/issues/72)) ([0eacbff](https://github.com/adobe/spacecat-shared/commit/0eacbff39dbc12d604e40ae94285533f7804ca0a))
|
|
142
|
+
* add package exports to npm module ([#4](https://github.com/adobe/spacecat-shared/issues/4)) ([7236d40](https://github.com/adobe/spacecat-shared/commit/7236d408c560e89a28972b6c695a6919e72854e7))
|
|
143
|
+
* allow sorting for get audits for site ([#41](https://github.com/adobe/spacecat-shared/issues/41)) ([3664c97](https://github.com/adobe/spacecat-shared/commit/3664c97bd63d4f10e260582455e3763da60399dd))
|
|
144
|
+
* allow update of github URL ([#40](https://github.com/adobe/spacecat-shared/issues/40)) ([21da989](https://github.com/adobe/spacecat-shared/commit/21da9893fcb9c971c1c6a4e1271133188351c155))
|
|
145
|
+
* allow use of index for getItem ([#10](https://github.com/adobe/spacecat-shared/issues/10)) ([9a984d1](https://github.com/adobe/spacecat-shared/commit/9a984d176f02444409318a5f4287d75249b2d83a))
|
|
146
|
+
* audit result scores init, test ([#89](https://github.com/adobe/spacecat-shared/issues/89)) ([96f829c](https://github.com/adobe/spacecat-shared/commit/96f829c908e38b2e5f303eee83da2488f8076a0b))
|
|
147
|
+
* auto-remove undefined values ([#64](https://github.com/adobe/spacecat-shared/issues/64)) ([ce9abac](https://github.com/adobe/spacecat-shared/commit/ce9abac0f99471616bd2fb971e18953791e364c3))
|
|
148
|
+
* bogus change to force release ([e77e830](https://github.com/adobe/spacecat-shared/commit/e77e8305c96ac2504aeb22af44d45cb4acbcae56))
|
|
149
|
+
* createdAt test ([#88](https://github.com/adobe/spacecat-shared/issues/88)) ([ac6a5ba](https://github.com/adobe/spacecat-shared/commit/ac6a5bab9ee45a2840681f291a13f23a3eb97e25))
|
|
150
|
+
* **deps:** update aws-sdk-js-v3 monorepo ([#16](https://github.com/adobe/spacecat-shared/issues/16)) ([e60296a](https://github.com/adobe/spacecat-shared/commit/e60296a78105079527e80c802c60de5d28ebd207))
|
|
151
|
+
* **deps:** update aws-sdk-js-v3 monorepo to v3.465.0 ([#19](https://github.com/adobe/spacecat-shared/issues/19)) ([612c257](https://github.com/adobe/spacecat-shared/commit/612c257870dc171d32c4ca5f8c2e48f9f77f8198))
|
|
152
|
+
* **deps:** update aws-sdk-js-v3 monorepo to v3.477.0 ([#68](https://github.com/adobe/spacecat-shared/issues/68)) ([492913f](https://github.com/adobe/spacecat-shared/commit/492913f0011d557b7c91ba631c13ced171bc2ce9))
|
|
153
|
+
* **deps:** update dependency uuid to v9 ([#22](https://github.com/adobe/spacecat-shared/issues/22)) ([456bfe8](https://github.com/adobe/spacecat-shared/commit/456bfe8e253d3589304624ba2281d51a4c9e4d22))
|
|
154
|
+
* **deps:** update external fixes ([#71](https://github.com/adobe/spacecat-shared/issues/71)) ([b9a6679](https://github.com/adobe/spacecat-shared/commit/b9a667966e7b0f013f46c62f6cc4a85f80623c61))
|
|
155
|
+
* **deps:** update external fixes ([#76](https://github.com/adobe/spacecat-shared/issues/76)) ([5b74623](https://github.com/adobe/spacecat-shared/commit/5b74623a4accfb601b607170f9bd67fb380f5c84))
|
|
156
|
+
* **deps:** update external fixes ([#81](https://github.com/adobe/spacecat-shared/issues/81)) ([67cf21c](https://github.com/adobe/spacecat-shared/commit/67cf21c548d036de45221e118ff3bc0e7b26a692))
|
|
157
|
+
* **deps:** update external fixes ([#90](https://github.com/adobe/spacecat-shared/issues/90)) ([df8161e](https://github.com/adobe/spacecat-shared/commit/df8161e4be87a5a3035729ce94388a8ccaf1630b))
|
|
158
|
+
* distinguish lhs-mobile vs lhs-desktop ([#27](https://github.com/adobe/spacecat-shared/issues/27)) ([18fd1b1](https://github.com/adobe/spacecat-shared/commit/18fd1b18ae400c32bbb3a175f7d6a6cde104f4a1))
|
|
159
|
+
* export getLatestAuditsForSite ([#39](https://github.com/adobe/spacecat-shared/issues/39)) ([e9c9130](https://github.com/adobe/spacecat-shared/commit/e9c9130b940122714be76e3df6e96e44bbde5348))
|
|
160
|
+
* export rumapiclient as default ([#52](https://github.com/adobe/spacecat-shared/issues/52)) ([7c5d2f5](https://github.com/adobe/spacecat-shared/commit/7c5d2f56a5822ed93d63c894ded766924905c797))
|
|
161
|
+
* get audit no query ([#34](https://github.com/adobe/spacecat-shared/issues/34)) ([8fadd0a](https://github.com/adobe/spacecat-shared/commit/8fadd0a21a1e0cc232a06ccf805d1ac5c946b8be))
|
|
162
|
+
* get latest audits with delivery type ([#80](https://github.com/adobe/spacecat-shared/issues/80)) ([d823773](https://github.com/adobe/spacecat-shared/commit/d823773d738ebddf2790356750827ae74e66b052))
|
|
163
|
+
* getSitesByDeliveryType signature ([#78](https://github.com/adobe/spacecat-shared/issues/78)) ([2b6c0fd](https://github.com/adobe/spacecat-shared/commit/2b6c0fd3e603eb3c688a45ae9ab78baf88a508ef))
|
|
164
|
+
* github org ([02f86c3](https://github.com/adobe/spacecat-shared/commit/02f86c351b2b1ab99ce5aca7fd5e6af2246c0efd))
|
|
165
|
+
* github semantic plugin config ([db5a14a](https://github.com/adobe/spacecat-shared/commit/db5a14af6d09333cea10af8624e07454bbeac838))
|
|
166
|
+
* github token reference ([8ac46cf](https://github.com/adobe/spacecat-shared/commit/8ac46cfa7dd8e0e2cc7b8bfa2f07e186055ce417))
|
|
167
|
+
* GSI sort key when error ([#62](https://github.com/adobe/spacecat-shared/issues/62)) ([dbb6a91](https://github.com/adobe/spacecat-shared/commit/dbb6a91f75fa9492a621de7b258cbebe38fe3ac7))
|
|
168
|
+
* include audit ref and audited at ([#75](https://github.com/adobe/spacecat-shared/issues/75)) ([e573c90](https://github.com/adobe/spacecat-shared/commit/e573c903851d88c7293caa5e5a9af763987edb3a))
|
|
169
|
+
* initialize scores as an empty object (SITES-18417) ([b43b96d](https://github.com/adobe/spacecat-shared/commit/b43b96d5636e5f91bd08ef81d22f2372b02d2809))
|
|
170
|
+
* initialize scores as an empty object (SITES-18417) ([#87](https://github.com/adobe/spacecat-shared/issues/87)) ([eb38e32](https://github.com/adobe/spacecat-shared/commit/eb38e3298228edb1d996fa633bff4af4dcbf69db))
|
|
171
|
+
* key validation ([#7](https://github.com/adobe/spacecat-shared/issues/7)) ([4283e14](https://github.com/adobe/spacecat-shared/commit/4283e1418f78b8d610637b90bd504e47ae3bc8ee))
|
|
172
|
+
* latest-audits sort key ([#33](https://github.com/adobe/spacecat-shared/issues/33)) ([21dc14e](https://github.com/adobe/spacecat-shared/commit/21dc14e75e8aad641f1c99330243a3102e8de465))
|
|
173
|
+
* make RUMOptions optional ([6c2825b](https://github.com/adobe/spacecat-shared/commit/6c2825b49977ce50bc998258e9f23c73cc822b22))
|
|
174
|
+
* missing module releaserc ([0ec70ba](https://github.com/adobe/spacecat-shared/commit/0ec70ba171edd66f4aa4e3770cc9b2a3e29d752c))
|
|
175
|
+
* move to main.yml ([89a8c69](https://github.com/adobe/spacecat-shared/commit/89a8c6969a576b17544345e0975d97b52c3c8ebc))
|
|
176
|
+
* no undefined for putItem ([#43](https://github.com/adobe/spacecat-shared/issues/43)) ([283f229](https://github.com/adobe/spacecat-shared/commit/283f2299956c53ea77206a973210c3ecc9475180))
|
|
177
|
+
* npm token (again) ([9934572](https://github.com/adobe/spacecat-shared/commit/99345729cc40e48dd5789ec54c30acca69c57516))
|
|
178
|
+
* npm token renovate ([b6656e7](https://github.com/adobe/spacecat-shared/commit/b6656e7d32b5b9432b72944fa5aef44d1cd82259))
|
|
179
|
+
* npmToken for renovate ([155a5f3](https://github.com/adobe/spacecat-shared/commit/155a5f333dfe95eb729f5fa271d351b5f5493405))
|
|
180
|
+
* package name to "adobe" ([475434e](https://github.com/adobe/spacecat-shared/commit/475434e6619c2128ba1a8308a4eed23cf3d40691))
|
|
181
|
+
* pass ascending param ([#42](https://github.com/adobe/spacecat-shared/issues/42)) ([930ae6b](https://github.com/adobe/spacecat-shared/commit/930ae6b09825cf37de90db0a4331eebe5f58a70e))
|
|
182
|
+
* re-set node 20 ([ef24765](https://github.com/adobe/spacecat-shared/commit/ef2476591d7eed34f2d6726c60faab285c3706e2))
|
|
183
|
+
* reduce log output of putitem ([#31](https://github.com/adobe/spacecat-shared/issues/31)) ([29d1496](https://github.com/adobe/spacecat-shared/commit/29d149661c56f2cef0c7d02d39bc8aad89475afa))
|
|
184
|
+
* remove .keep ([4f9319f](https://github.com/adobe/spacecat-shared/commit/4f9319fe77138684d2a81ac29a1bdfa34575d238))
|
|
185
|
+
* remove unneeded import (force release) ([49964f9](https://github.com/adobe/spacecat-shared/commit/49964f99906d5a0fafeb68b460cb19f98a51fc86))
|
|
186
|
+
* remove unsupported codeql workflow ([467bd3b](https://github.com/adobe/spacecat-shared/commit/467bd3b47c35280f6dc2e6bd897ec61976df0169))
|
|
187
|
+
* rename circle ci ([c12906e](https://github.com/adobe/spacecat-shared/commit/c12906ee6a9e572e2763babe60c276dd49310d17))
|
|
188
|
+
* rename NPM token ([fb23bf1](https://github.com/adobe/spacecat-shared/commit/fb23bf1f17ca393cbef1faaadfc42b4526b30589))
|
|
189
|
+
* renovate ([1a16980](https://github.com/adobe/spacecat-shared/commit/1a16980d5c78530a10dfbd7513ce3b338ffb5e7a))
|
|
190
|
+
* repo reference ([881487d](https://github.com/adobe/spacecat-shared/commit/881487dce4c840ac2bf02a285f17cac511d39c88))
|
|
191
|
+
* roll-back esm monorepo ([ab77518](https://github.com/adobe/spacecat-shared/commit/ab775187dc79a7f2cdb0ca4fa31198202be78143))
|
|
192
|
+
* roll-back node 20 for github workflow ([876e26c](https://github.com/adobe/spacecat-shared/commit/876e26c343fbf5121bcfed0827e551f0973c1b83))
|
|
193
|
+
* rollback test change for node 18 ([ff981fb](https://github.com/adobe/spacecat-shared/commit/ff981fbb658cba611a188a57a1b1c79f1ba8e89a))
|
|
194
|
+
* rum domain key env var ([b52ead5](https://github.com/adobe/spacecat-shared/commit/b52ead5217f20cb48f2026bf86d04d72671f81c5))
|
|
195
|
+
* semantic-release scripts ([6078334](https://github.com/adobe/spacecat-shared/commit/607833457210c50342712fb8a90c2b711915ffec))
|
|
196
|
+
* set default organization ([#92](https://github.com/adobe/spacecat-shared/issues/92)) ([ac7e70c](https://github.com/adobe/spacecat-shared/commit/ac7e70c65f643c2f52730c3d5da4a0c4be282632))
|
|
197
|
+
* set github_token correctly ([cf6a8aa](https://github.com/adobe/spacecat-shared/commit/cf6a8aa75a17fbc82a3f3cd9499f26cbb945c8aa))
|
|
198
|
+
* set package version to semantic, remove dev deps ([bf62c5f](https://github.com/adobe/spacecat-shared/commit/bf62c5fe013dbbb7425eb21cffa23e7f01322aee))
|
|
199
|
+
* set pre-commit hook executable ([3ce9a6c](https://github.com/adobe/spacecat-shared/commit/3ce9a6ccfa2950c7401c11a8846b38f2ab4baadb))
|
|
200
|
+
* set to semantic-release versioning ([9209799](https://github.com/adobe/spacecat-shared/commit/92097995b657207996dd6a35277fdfcd3f3e8fb9))
|
|
201
|
+
* sort order sites with latest audits ([#46](https://github.com/adobe/spacecat-shared/issues/46)) ([8da2bf1](https://github.com/adobe/spacecat-shared/commit/8da2bf16b904ced6787d8c56ba2b4b72678687a0))
|
|
202
|
+
* switch defaults to dev (force release) ([b85d54c](https://github.com/adobe/spacecat-shared/commit/b85d54ca7430a4e54b49d112429242c81ff55714))
|
|
203
|
+
* type def / jsdoc ([#61](https://github.com/adobe/spacecat-shared/issues/61)) ([078f9e6](https://github.com/adobe/spacecat-shared/commit/078f9e6855d3f475f3a746561758aaefb5cb3c79))
|
|
204
|
+
* typo ([9167cf3](https://github.com/adobe/spacecat-shared/commit/9167cf3ac70a998aa92aaef24e080cd8147a70e9))
|
|
205
|
+
* update dynamo client ([#65](https://github.com/adobe/spacecat-shared/issues/65)) ([cc09041](https://github.com/adobe/spacecat-shared/commit/cc09041200dfe23c0a83c384fc9695ac972564e9))
|
|
206
|
+
* update node to lts/20, semantic release, misc ([#91](https://github.com/adobe/spacecat-shared/issues/91)) ([099662a](https://github.com/adobe/spacecat-shared/commit/099662af314866852313e250cecead2404e52f42))
|
|
207
|
+
* use correct doc client ([#9](https://github.com/adobe/spacecat-shared/issues/9)) ([d052b16](https://github.com/adobe/spacecat-shared/commit/d052b16dc6baf65efe83e34fe82d50265f6ae751))
|
|
208
|
+
* use getItem for latest audit ([#35](https://github.com/adobe/spacecat-shared/issues/35)) ([6e4a87e](https://github.com/adobe/spacecat-shared/commit/6e4a87ea2d515f632b34278a8cc1ffd51d692a16))
|
|
209
|
+
* use new aem datadesk ui for the backlinks ([#79](https://github.com/adobe/spacecat-shared/issues/79)) ([526b69c](https://github.com/adobe/spacecat-shared/commit/526b69cc8067f883f2ce0ab10c712b8ca094c81d))
|
|
210
|
+
* variouss ([ea9d44f](https://github.com/adobe/spacecat-shared/commit/ea9d44f6071c1a53d2c31515966e7cdf44be7ae9))
|
|
211
|
+
* wrap scores ([#28](https://github.com/adobe/spacecat-shared/issues/28)) ([4733a93](https://github.com/adobe/spacecat-shared/commit/4733a93d2db087dd57f94955a2101e5a4bb74ce2))
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
### Features
|
|
215
|
+
|
|
216
|
+
* add audit config ([#59](https://github.com/adobe/spacecat-shared/issues/59)) ([f851862](https://github.com/adobe/spacecat-shared/commit/f8518623a8b8e4e337b3c44a16b65724a953596a))
|
|
217
|
+
* add broken-backlinks audit type (SITES-18417) ([#86](https://github.com/adobe/spacecat-shared/issues/86)) ([b16c366](https://github.com/adobe/spacecat-shared/commit/b16c3667808221958ff4a526512cb89c3cd0bbcb))
|
|
218
|
+
* add data access module ([#11](https://github.com/adobe/spacecat-shared/issues/11)) ([cdbfff3](https://github.com/adobe/spacecat-shared/commit/cdbfff3961cbfc5702b832c386e3ccfd8572b439))
|
|
219
|
+
* add dynamo and utils modules ([#3](https://github.com/adobe/spacecat-shared/issues/3)) ([5e2e605](https://github.com/adobe/spacecat-shared/commit/5e2e6059648f4f554168dabeab737f6a09d8a050))
|
|
220
|
+
* add guards and use spacecat-shared-utils ([#6](https://github.com/adobe/spacecat-shared/issues/6)) ([27143cf](https://github.com/adobe/spacecat-shared/commit/27143cf2d4a439f1b5904e62756e59e501b3f67d))
|
|
221
|
+
* add isArray function ([eeb45a6](https://github.com/adobe/spacecat-shared/commit/eeb45a6784c6406403d0a59b65ba873a107c654c))
|
|
222
|
+
* add rum api calls to shared ([56cccd0](https://github.com/adobe/spacecat-shared/commit/56cccd0f498eaca6a4bb35a6b64d5f0dbe68a096))
|
|
223
|
+
* add support for 404 report backlink ([0d622de](https://github.com/adobe/spacecat-shared/commit/0d622de241b51f0df625679591dd5168b5b070a7))
|
|
224
|
+
* allow configuration from ctx / add missing fields ([#24](https://github.com/adobe/spacecat-shared/issues/24)) ([6959f89](https://github.com/adobe/spacecat-shared/commit/6959f895ed9b167f421b201f856ef871bd2a335c))
|
|
225
|
+
* data model for organizations ([944be83](https://github.com/adobe/spacecat-shared/commit/944be83c9f19e3acee9bb17352b3058fe6578a69))
|
|
226
|
+
* http utils package ([#51](https://github.com/adobe/spacecat-shared/issues/51)) ([84cd91a](https://github.com/adobe/spacecat-shared/commit/84cd91ae4225455327116169f5b040cc9adc1c2e))
|
|
227
|
+
* http-utils functions ([#49](https://github.com/adobe/spacecat-shared/issues/49)) ([20e98fa](https://github.com/adobe/spacecat-shared/commit/20e98faa75d2f439ea5e671937f78bea706ec5d7))
|
|
228
|
+
* introduce getSiteByID ([#36](https://github.com/adobe/spacecat-shared/issues/36)) ([5677f76](https://github.com/adobe/spacecat-shared/commit/5677f76d11d97f2a2afd878e0ada7cad22fd1f03))
|
|
229
|
+
* resolve secrets name ([#44](https://github.com/adobe/spacecat-shared/issues/44)) ([8c7604d](https://github.com/adobe/spacecat-shared/commit/8c7604da6b36f450a9054fa93c6c469c1f47319b))
|
|
230
|
+
* rum api client ([#48](https://github.com/adobe/spacecat-shared/issues/48)) ([ccfa187](https://github.com/adobe/spacecat-shared/commit/ccfa187a45f35e57085ac241ff156c0b9418592d))
|
|
231
|
+
* set isLiveToggledAt ([#85](https://github.com/adobe/spacecat-shared/issues/85)) ([cefc093](https://github.com/adobe/spacecat-shared/commit/cefc0938385b9fa079d24c24f03b21651a0999cc))
|
|
232
|
+
* site delivery type ([#77](https://github.com/adobe/spacecat-shared/issues/77)) ([005bc38](https://github.com/adobe/spacecat-shared/commit/005bc388ed6ab0f82c8b0f562d4c1f4c0d1e2894))
|
|
233
|
+
* store previous latest audit result ([#74](https://github.com/adobe/spacecat-shared/issues/74)) ([4663c43](https://github.com/adobe/spacecat-shared/commit/4663c4344e260f85c4e64691e0685260d36629e5))
|
|
234
|
+
* test ([bd3cc5d](https://github.com/adobe/spacecat-shared/commit/bd3cc5df89ccde75b86b000e8495893f4b099b5b))
|
|
235
|
+
* update audit config ([#63](https://github.com/adobe/spacecat-shared/issues/63)) ([00a468e](https://github.com/adobe/spacecat-shared/commit/00a468e9404676212ec9441c8a7fccf1a93c636f))
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
### Reverts
|
|
239
|
+
|
|
240
|
+
* Revert "fix: allow use of index for getItem (#10)" (#15) ([ad03176](https://github.com/adobe/spacecat-shared/commit/ad0317625074a26a4600d7e464a53c3b6dd78fe4)), closes [#10](https://github.com/adobe/spacecat-shared/issues/10) [#15](https://github.com/adobe/spacecat-shared/issues/15)
|
|
241
|
+
|
|
242
|
+
# [@adobe/spacecat-shared-data-access-v1.9.5](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.9.4...@adobe/spacecat-shared-data-access-v1.9.5) (2024-01-22)
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
### Bug Fixes
|
|
246
|
+
|
|
247
|
+
* set default organization ([#92](https://github.com/adobe/spacecat-shared/issues/92)) ([ac7e70c](https://github.com/adobe/spacecat-shared/commit/ac7e70c65f643c2f52730c3d5da4a0c4be282632))
|
|
248
|
+
|
|
1
249
|
# [@adobe/spacecat-shared-data-access-v1.9.4](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.9.3...@adobe/spacecat-shared-data-access-v1.9.4) (2024-01-20)
|
|
2
250
|
|
|
3
251
|
|
package/package.json
CHANGED
|
@@ -15,6 +15,8 @@ import { hasText, isObject } from '@adobe/spacecat-shared-utils';
|
|
|
15
15
|
import { Base } from './base.js';
|
|
16
16
|
import { Config, DEFAULT_CONFIG } from './site/config.js';
|
|
17
17
|
|
|
18
|
+
export const DEFAULT_ORGANIZATION_ID = 'default';
|
|
19
|
+
|
|
18
20
|
/**
|
|
19
21
|
* Creates a new Organization.
|
|
20
22
|
*
|
package/src/models/site.js
CHANGED
|
@@ -10,11 +10,12 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { isObject, isValidUrl } from '@adobe/spacecat-shared-utils';
|
|
13
|
+
import { hasText, isObject, isValidUrl } from '@adobe/spacecat-shared-utils';
|
|
14
14
|
|
|
15
15
|
import { Base } from './base.js';
|
|
16
16
|
import AuditConfig from './site/audit-config.js';
|
|
17
17
|
import { Config, DEFAULT_CONFIG } from './site/config.js';
|
|
18
|
+
import { DEFAULT_ORGANIZATION_ID } from './organization.js';
|
|
18
19
|
|
|
19
20
|
export const DELIVERY_TYPES = {
|
|
20
21
|
AEM_CS: 'aem_cs',
|
|
@@ -162,6 +163,10 @@ export const createSite = (data) => {
|
|
|
162
163
|
throw new Error('Base URL must be a valid URL');
|
|
163
164
|
}
|
|
164
165
|
|
|
166
|
+
if (!hasText(newState.organizationId)) {
|
|
167
|
+
newState.organizationId = DEFAULT_ORGANIZATION_ID;
|
|
168
|
+
}
|
|
169
|
+
|
|
165
170
|
newState.deliveryType = newState.deliveryType || DEFAULT_DELIVERY_TYPE;
|
|
166
171
|
if (!Object.values(DELIVERY_TYPES).includes(newState.deliveryType)) {
|
|
167
172
|
throw new Error(`Invalid delivery type: ${newState.deliveryType}`);
|