@natlibfi/melinda-rest-api-commons 6.2.0-alpha.3 → 7.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,8 @@ Everything is exported from the package root (`@natlibfi/melinda-rest-api-common
|
|
|
18
18
|
`CHUNK_SIZE`, `LOG_ITEM_TYPE`, `CONVERSION_FORMATS` (see
|
|
19
19
|
[Constants](#constants) below)
|
|
20
20
|
- **types** (TypeScript consumers): `MongoOperator`, `QueueItem`,
|
|
21
|
-
`ImportJobStateValue`, `
|
|
21
|
+
`ImportJobStateValue`, `CheckAndSetResult`, `CreateBulkResult`,
|
|
22
|
+
`MongoLogOperator`, `LogItem`, `LogItemType`,
|
|
22
23
|
`AmqpOperator`, `QueueItemRecordPayload`, `QueueItemMessagePayload`
|
|
23
24
|
|
|
24
25
|
Invalid input is rejected with an `ApiError` 400; a Mongo failure rejects
|
|
@@ -137,9 +138,9 @@ false returns the plain amqplib message instead of a payload object.
|
|
|
137
138
|
| `addRecordResponseItem({recordResponseItem, correlationId, mongoOperator})` | Add one record response item to the `records` field of a queue item |
|
|
138
139
|
| `addRecordResponseItems({recordResponseItems, correlationId, mongoOperator})` | Add several record response items in one Mongo operation (avoids write conflicts) |
|
|
139
140
|
|
|
140
|
-
### Breaking changes
|
|
141
|
+
### Breaking changes in 7.0
|
|
141
142
|
|
|
142
|
-
If you upgrade from 5.x or 6.
|
|
143
|
+
If you upgrade from 5.x or 6.x, verify these methods — their return shape or
|
|
143
144
|
calling convention changed:
|
|
144
145
|
|
|
145
146
|
1. `checkAndSetState` / `checkAndSetImportJobState` no longer return a
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,6 @@ import { logError, createImportJobState, createRecordResponseItem, addRecordResp
|
|
|
8
8
|
export { mongoFactory, mongoLogFactory, amqpFactory, conversions, validations, fixes, logError, createImportJobState, createRecordResponseItem, addRecordResponseItem, addRecordResponseItems };
|
|
9
9
|
export * from './constants.ts';
|
|
10
10
|
export type { AmqpOperator, QueueItemMessagePayload, QueueItemRecordPayload } from './amqp.ts';
|
|
11
|
-
export type { ImportJobStateValue, MongoOperator, QueueItem } from './mongo.ts';
|
|
11
|
+
export type { CheckAndSetResult, CreateBulkResult, ImportJobStateValue, MongoOperator, QueueItem } from './mongo.ts';
|
|
12
12
|
export type { LogItem, LogItemBase, LogItemPayload, LogItemType, MongoLogOperator } from './mongoLog.ts';
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,YAAY,CAAC;AACtC,OAAO,eAAe,MAAM,eAAe,CAAC;AAC5C,OAAO,WAAW,MAAM,WAAW,CAAC;AACpC,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAC,QAAQ,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,sBAAsB,EAAC,MAAM,YAAY,CAAC;AAEnI,OAAO,EAAC,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,sBAAsB,EAAC,CAAC;AAC9L,cAAc,gBAAgB,CAAC;AAK/B,YAAY,EAAC,YAAY,EAAE,uBAAuB,EAAE,sBAAsB,EAAC,MAAM,WAAW,CAAC;AAC7F,YAAY,EAAC,mBAAmB,EAAE,aAAa,EAAE,SAAS,EAAC,MAAM,YAAY,CAAC;
|
|
1
|
+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