@mpgd/platform 0.27.1 → 0.27.2
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/index.d.ts +8 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -123,7 +123,15 @@ export interface PlatformPurchasePresentationEvent {
|
|
|
123
123
|
readonly idempotencyKey: string;
|
|
124
124
|
readonly sequence: number;
|
|
125
125
|
readonly state: 'open' | 'closed' | 'not-started' | 'unknown';
|
|
126
|
+
/**
|
|
127
|
+
* Generation of this checkout attempt. A provider that restarts `sequence`
|
|
128
|
+
* on each call echoes `commercePresentationAttempt` from the request. A
|
|
129
|
+
* missing attempt keeps sequence-only ordering. It never grants.
|
|
130
|
+
*/
|
|
131
|
+
readonly attempt?: number;
|
|
126
132
|
}
|
|
133
|
+
/** Request property a coordinator sets so a restarting provider can echo the attempt. */
|
|
134
|
+
export declare const commercePresentationAttempt: unique symbol;
|
|
127
135
|
export interface AdAdapter {
|
|
128
136
|
/** Optional versioned provider surface; v1 methods remain compatible. */
|
|
129
137
|
readonly provider?: AdProvider;
|
package/dist/index.js
CHANGED
|
@@ -43,6 +43,8 @@ function isPlatformOperationCode(code) {
|
|
|
43
43
|
&& code.length <= 128
|
|
44
44
|
&& /^[A-Z][A-Z0-9_:-]*$/u.test(code);
|
|
45
45
|
}
|
|
46
|
+
/** Request property a coordinator sets so a restarting provider can echo the attempt. */
|
|
47
|
+
export const commercePresentationAttempt = Symbol.for('mpgd.commerce.presentationAttempt');
|
|
46
48
|
export function resolveShareCompletion(result) {
|
|
47
49
|
if (result.status !== 'shared') {
|
|
48
50
|
return undefined;
|
package/package.json
CHANGED