platform-types 1.10.754 → 1.10.755
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/cjs/customer.js +8 -1
- package/dist/customer.d.ts +12 -0
- package/dist/customer.js +7 -0
- package/package.json +1 -1
package/dist/cjs/customer.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CUSTOMER_ACQUISITION_CHANNELS = exports.CUSTOMER_LIFECYCLE_STAGES = exports.CUSTOMER_KINDS = void 0;
|
|
3
|
+
exports.CUSTOMER_DISCOUNT_MAX = exports.CUSTOMER_ACQUISITION_CHANNELS = exports.CUSTOMER_LIFECYCLE_STAGES = exports.CUSTOMER_KINDS = void 0;
|
|
4
4
|
exports.CUSTOMER_KINDS = ['person', 'company'];
|
|
5
5
|
exports.CUSTOMER_LIFECYCLE_STAGES = ['lead', 'active', 'inactive'];
|
|
6
6
|
exports.CUSTOMER_ACQUISITION_CHANNELS = ['storefront', 'pos', 'marketplace', 'import', 'manual'];
|
|
7
|
+
/**
|
|
8
|
+
* The highest standing `Customer.discount` (percent) a write may SET. A higher
|
|
9
|
+
* value is refused `400 CUSTOMER_DISCOUNT_OVER_MAX` by `POST /customers` and the
|
|
10
|
+
* customer import. A stored legacy value above it is kept: a write that leaves
|
|
11
|
+
* `discount` unchanged (or omits it) still saves.
|
|
12
|
+
*/
|
|
13
|
+
exports.CUSTOMER_DISCOUNT_MAX = 50;
|
package/dist/customer.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
export declare const CUSTOMER_KINDS: readonly ["person", "company"];
|
|
2
2
|
export declare const CUSTOMER_LIFECYCLE_STAGES: readonly ["lead", "active", "inactive"];
|
|
3
3
|
export declare const CUSTOMER_ACQUISITION_CHANNELS: readonly ["storefront", "pos", "marketplace", "import", "manual"];
|
|
4
|
+
/**
|
|
5
|
+
* The highest standing `Customer.discount` (percent) a write may SET. A higher
|
|
6
|
+
* value is refused `400 CUSTOMER_DISCOUNT_OVER_MAX` by `POST /customers` and the
|
|
7
|
+
* customer import. A stored legacy value above it is kept: a write that leaves
|
|
8
|
+
* `discount` unchanged (or omits it) still saves.
|
|
9
|
+
*/
|
|
10
|
+
export declare const CUSTOMER_DISCOUNT_MAX = 50;
|
|
4
11
|
declare global {
|
|
5
12
|
/** Exact identity matches within the token's store; no stored identity fields are returned. */
|
|
6
13
|
interface CustomerDuplicateCandidate {
|
|
@@ -285,6 +292,11 @@ declare global {
|
|
|
285
292
|
* that reason whatever this says.
|
|
286
293
|
*/
|
|
287
294
|
accessState?: 'pending' | 'rejected';
|
|
295
|
+
/**
|
|
296
|
+
* Standing discount percent, pre-filled on every pre-order for this customer.
|
|
297
|
+
* Writes cap it at `CUSTOMER_DISCOUNT_MAX` (50); rows written before the cap
|
|
298
|
+
* may hold up to 100 and are never rewritten.
|
|
299
|
+
*/
|
|
288
300
|
discount: number;
|
|
289
301
|
/** Absent after erasure or the final merge flip; registration still requires an address. */
|
|
290
302
|
email?: string;
|
package/dist/customer.js
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
export const CUSTOMER_KINDS = ['person', 'company'];
|
|
2
2
|
export const CUSTOMER_LIFECYCLE_STAGES = ['lead', 'active', 'inactive'];
|
|
3
3
|
export const CUSTOMER_ACQUISITION_CHANNELS = ['storefront', 'pos', 'marketplace', 'import', 'manual'];
|
|
4
|
+
/**
|
|
5
|
+
* The highest standing `Customer.discount` (percent) a write may SET. A higher
|
|
6
|
+
* value is refused `400 CUSTOMER_DISCOUNT_OVER_MAX` by `POST /customers` and the
|
|
7
|
+
* customer import. A stored legacy value above it is kept: a write that leaves
|
|
8
|
+
* `discount` unchanged (or omits it) still saves.
|
|
9
|
+
*/
|
|
10
|
+
export const CUSTOMER_DISCOUNT_MAX = 50;
|