cxtms 1.9.266 → 1.9.267

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cxtms",
3
- "version": "1.9.266",
3
+ "version": "1.9.267",
4
4
  "description": "Schema validation package for CXTMS YAML modules",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -168,7 +168,7 @@ type ApplicationUserRolesCollectionSegment {
168
168
 
169
169
  type AttachmentGqlDto {
170
170
  getParentOrder: order @cost(weight: "10")
171
- getPresignedUri(expiresInDays: Int!, uriType: String!): String
171
+ getPresignedUri(expiresInDays: Int!, uriType: String!, download: Boolean = false): String
172
172
  @cost(weight: "10")
173
173
  attachmentId: Int!
174
174
  attachmentGuid: UUID
@@ -101,7 +101,7 @@ File attachments. `parentType`/`parentId` is the primary parent; an attachment c
101
101
 
102
102
  - `isImage`, `isPdf` — computed from extension
103
103
  - `presignedFileUri`, `presignedPreviewUri`, `presignedThumbnailUri` — signed URLs
104
- - `getPresignedUri(expiresInDays, uriType)` — custom resolver
104
+ - `getPresignedUri(expiresInDays, uriType, download: false)` — custom resolver; pass `download: true` to return a signed URL with an attachment disposition and preserve the original file name
105
105
  - `getParentOrder` — resolve parent Order
106
106
  - `links { entityType entityId }` — all links, including the primary one
107
107
  - Filter by link: `attachments(filter: "orderLinks.orderId:123")` — also `contactLinks.contactId`, `jobLinks.jobId`, `trackingEventLinks.trackingEventId`