@campfire-interactive/master-data-client 5.53.0 → 5.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rfqs.d.ts +18 -1
- package/dist/rfqs.d.ts.map +1 -1
- package/dist/rfqs.js +22 -0
- package/dist/rfqs.js.map +1 -1
- package/package.json +1 -1
package/dist/rfqs.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpTransport } from './http';
|
|
2
|
-
import type { Rfq, RfqDetail, RfqSummary, CreateRfqInput, UpdateRfqInput, ListRfqsOptions, SingleResponse } from './types';
|
|
2
|
+
import type { Rfq, RfqDetail, RfqSummary, CreateRfqInput, UpdateRfqInput, ListRfqsOptions, SingleResponse, ListResponse, AuditLogEntry } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* RFQs — ONE customer request; the competing quotes are its options.
|
|
5
5
|
*
|
|
@@ -117,5 +117,22 @@ export declare class RfqResource {
|
|
|
117
117
|
id: string;
|
|
118
118
|
rfqNumber: string;
|
|
119
119
|
}>>;
|
|
120
|
+
/**
|
|
121
|
+
* The request's history, newest first.
|
|
122
|
+
*
|
|
123
|
+
* Owner/admin only, like every other entity's audit log. Unpaginated: an
|
|
124
|
+
* RFQ's history is bounded by how many times a person touched one request.
|
|
125
|
+
*
|
|
126
|
+
* **A status change carries where it came FROM.** Those entries are
|
|
127
|
+
* `{ kind: 'status_transition', from, to }` merged into the patch that was
|
|
128
|
+
* sent, which is the same shape `quotes.getAudit` returns for a transition.
|
|
129
|
+
* They are merged rather than standing alone because one PATCH may rename
|
|
130
|
+
* the request and resolve it at once, and a reader wants both. Entries with
|
|
131
|
+
* no `kind` are an ordinary field diff.
|
|
132
|
+
*
|
|
133
|
+
* 404s for an RFQ this tenant cannot see, rather than returning an empty
|
|
134
|
+
* list - "nothing happened" is a different answer from "no such request".
|
|
135
|
+
*/
|
|
136
|
+
getAudit(id: string): Promise<ListResponse<AuditLogEntry>>;
|
|
120
137
|
}
|
|
121
138
|
//# sourceMappingURL=rfqs.d.ts.map
|
package/dist/rfqs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rfqs.d.ts","sourceRoot":"","sources":["../src/rfqs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,EACV,GAAG,EACH,SAAS,EACT,UAAU,EACV,cAAc,EACd,cAAc,EACd,eAAe,EACf,cAAc,
|
|
1
|
+
{"version":3,"file":"rfqs.d.ts","sourceRoot":"","sources":["../src/rfqs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,EACV,GAAG,EACH,SAAS,EACT,UAAU,EACV,cAAc,EACd,cAAc,EACd,eAAe,EACf,cAAc,EACd,YAAY,EACZ,aAAa,EACd,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,qBAAa,WAAW;IACV,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,aAAa;IAEhD,gEAAgE;IAC1D,IAAI,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC;IAa5E;;;OAGG;IACG,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;IAOzD;;;;;;;;;;;;OAYG;IACG,MAAM,CACV,KAAK,EAAE,cAAc,EACrB,cAAc,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IAS/B;;;;;;;;;;;;;;;;;;;OAmBG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IAQ7E;;;;;;;;;;OAUG;IACG,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IAQ9E;;;;;;;;;OASG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAOpF;;;;;;;;;;;;;;;OAeG;IACG,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;CAMjE"}
|
package/dist/rfqs.js
CHANGED
|
@@ -161,6 +161,28 @@ class RfqResource {
|
|
|
161
161
|
path: `/v1/rfqs/${encodeURIComponent(id)}`,
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* The request's history, newest first.
|
|
166
|
+
*
|
|
167
|
+
* Owner/admin only, like every other entity's audit log. Unpaginated: an
|
|
168
|
+
* RFQ's history is bounded by how many times a person touched one request.
|
|
169
|
+
*
|
|
170
|
+
* **A status change carries where it came FROM.** Those entries are
|
|
171
|
+
* `{ kind: 'status_transition', from, to }` merged into the patch that was
|
|
172
|
+
* sent, which is the same shape `quotes.getAudit` returns for a transition.
|
|
173
|
+
* They are merged rather than standing alone because one PATCH may rename
|
|
174
|
+
* the request and resolve it at once, and a reader wants both. Entries with
|
|
175
|
+
* no `kind` are an ordinary field diff.
|
|
176
|
+
*
|
|
177
|
+
* 404s for an RFQ this tenant cannot see, rather than returning an empty
|
|
178
|
+
* list - "nothing happened" is a different answer from "no such request".
|
|
179
|
+
*/
|
|
180
|
+
async getAudit(id) {
|
|
181
|
+
return this.http.request({
|
|
182
|
+
method: 'GET',
|
|
183
|
+
path: `/v1/rfqs/${encodeURIComponent(id)}/audit`,
|
|
184
|
+
});
|
|
185
|
+
}
|
|
164
186
|
}
|
|
165
187
|
exports.RfqResource = RfqResource;
|
|
166
188
|
//# sourceMappingURL=rfqs.js.map
|
package/dist/rfqs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rfqs.js","sourceRoot":"","sources":["../src/rfqs.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"rfqs.js","sourceRoot":"","sources":["../src/rfqs.ts"],"names":[],"mappings":";;;AAaA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAa,WAAW;IACO;IAA7B,YAA6B,IAAmB;QAAnB,SAAI,GAAJ,IAAI,CAAe;IAAG,CAAC;IAEpD,gEAAgE;IAChE,KAAK,CAAC,IAAI,CAAC,OAAyB;QAClC,MAAM,KAAK,GAAuC,EAAE,CAAC;QACrD,IAAI,OAAO,EAAE,MAAM;YAAE,KAAK,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QACnD,IAAI,OAAO,EAAE,MAAM;YAAE,KAAK,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QACnD,IAAI,OAAO,EAAE,iBAAiB;YAAE,KAAK,CAAC,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACpF,IAAI,OAAO,EAAE,aAAa;YAAE,KAAK,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;QACxE,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAA+B;YACrD,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,UAAU;YAChB,KAAK;SACN,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,GAAG,CAAC,EAAU;QAClB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAA4B;YAClD,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,YAAY,kBAAkB,CAAC,EAAE,CAAC,EAAE;SAC3C,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KA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