@sp-api-sdk/schemas
Version:
Selling Parner API additional schema types
200 lines (199 loc) • 12 kB
TypeScript
import { type FromSchema } from 'json-schema-to-ts';
export declare const feedProcessingFinishedNotification: {
readonly $id: "http://example.com/example.json";
readonly type: "object";
readonly description: "The root schema comprises the entire JSON document.";
readonly examples: readonly [{
readonly notificationVersion: "2020-09-04";
readonly notificationType: "FEED_PROCESSING_FINISHED";
readonly payloadVersion: "2020-09-04";
readonly eventTime: "2020-07-13T19:42:04.284Z";
readonly payload: {
readonly feedProcessingFinishedNotification: {
readonly sellerId: "A3TH9S8BH6GOGM";
readonly accountId: "amzn1.merchant.o.A3TH9S8BH6GOGM";
readonly feedId: "53347018456";
readonly feedType: "POST_PRODUCT_DATA";
readonly processingStatus: "DONE";
readonly resultFeedDocumentId: "amzn1.tortuga.3.edbcd0d8-3434-8222-1234-52ad8ade1208.URUTI57URI9BMZ";
};
};
readonly notificationMetadata: {
readonly applicationId: "amzn1.sellerapps.app.aacccfff-44aa-4b7c-b42b-ed4ec98dd746";
readonly subscriptionId: "subscription-id-d0e9e693-c3ad-4373-979f-ed4ec98dd746";
readonly publishTime: "2020-07-13T19:42:04.284Z";
readonly notificationId: "d0e9e693-c3ad-4373-979f-ed4ec98dd746";
};
}, {
readonly notificationVersion: "2020-09-04";
readonly notificationType: "FEED_PROCESSING_FINISHED";
readonly payloadVersion: "2020-09-04";
readonly eventTime: "2020-07-13T19:42:04.284Z";
readonly payload: {
readonly feedProcessingFinishedNotification: {
readonly accountId: "amzn1.vg.6213651";
readonly feedId: "53347018456";
readonly feedType: "POST_PRODUCT_DATA";
readonly processingStatus: "DONE";
readonly resultFeedDocumentId: "amzn1.tortuga.3.edbcd0d8-3434-8222-1234-52ad8ade1208.URUTI57URI9BMZ";
};
};
readonly notificationMetadata: {
readonly applicationId: "amzn1.sellerapps.app.aacccfff-44aa-4b7c-b42b-ed4ec98dd746";
readonly subscriptionId: "subscription-id-d0e9e693-c3ad-4373-979f-ed4ec98dd746";
readonly publishTime: "2020-07-13T19:42:04.284Z";
readonly notificationId: "d0e9e693-c3ad-4373-979f-ed4ec98dd746";
};
}];
readonly required: readonly ["notificationVersion", "notificationType", "payloadVersion", "eventTime", "payload", "notificationMetadata"];
readonly properties: {
readonly notificationVersion: {
readonly $id: "#/properties/notificationVersion";
readonly type: "string";
readonly description: "The version of the notification.";
readonly examples: readonly ["2020-09-04"];
};
readonly notificationType: {
readonly $id: "#/properties/notificationType";
readonly type: "string";
readonly description: "The type of the notification.";
readonly examples: readonly ["FEED_PROCESSING_FINISHED"];
};
readonly payloadVersion: {
readonly $id: "#/properties/payloadVersion";
readonly type: "string";
readonly description: "The version of the payload.";
readonly examples: readonly ["2020-09-04"];
};
readonly eventTime: {
readonly $id: "#/properties/eventTime";
readonly type: "string";
readonly description: "The timestamp of the event, formatted as ISO 8601 date-time.";
readonly examples: readonly ["2020-07-13T19:42:04.284Z"];
};
readonly payload: {
readonly $id: "#/properties/payload";
readonly type: "object";
readonly description: "The details of this notification.";
readonly examples: readonly [{
readonly feedProcessingFinishedNotification: {
readonly sellerId: "A3TH9S8BH6GOGM";
readonly accountId: "amzn1.merchant.o.A3TH9S8BH6GOGM";
readonly feedId: "53347018456";
readonly feedType: "POST_PRODUCT_DATA";
readonly processingStatus: "DONE";
readonly resultFeedDocumentId: "amzn1.tortuga.3.edbcd0d8-3434-8222-1234-52ad8ade1208.URUTI57URI9BMZ";
};
}, {
readonly feedProcessingFinishedNotification: {
readonly accountId: "amzn1.vg.6213651";
readonly feedId: "53347018456";
readonly feedType: "POST_PRODUCT_DATA";
readonly processingStatus: "DONE";
readonly resultFeedDocumentId: "amzn1.tortuga.3.edbcd0d8-3434-8222-1234-52ad8ade1208.URUTI57URI9BMZ";
};
}];
readonly required: readonly ["feedProcessingFinishedNotification"];
readonly properties: {
readonly feedProcessingFinishedNotification: {
readonly $id: "#/properties/payload/properties/feedProcessingFinishedNotification";
readonly type: "object";
readonly description: "An explanation about the purpose of this instance.";
readonly examples: readonly [{
readonly sellerId: "A3TH9S8BH6GOGM";
readonly accountId: "amzn1.merchant.o.A3TH9S8BH6GOGM";
readonly feedId: "53347018456";
readonly feedType: "POST_PRODUCT_DATA";
readonly processingStatus: "DONE";
readonly resultFeedDocumentId: "amzn1.tortuga.3.edbcd0d8-3434-8222-1234-52ad8ade1208.URUTI57URI9BMZ";
}, {
readonly accountId: "amzn1.vg.6213651";
readonly feedId: "53347018456";
readonly feedType: "POST_PRODUCT_DATA";
readonly processingStatus: "DONE";
readonly resultFeedDocumentId: "amzn1.tortuga.3.edbcd0d8-3434-8222-1234-52ad8ade1208.URUTI57URI9BMZ";
}];
readonly required: readonly ["accountId", "feedId", "feedType", "processingStatus"];
readonly properties: {
readonly sellerId: {
readonly $id: "#/properties/payload/properties/feedProcessingFinishedNotification/properties/sellerId";
readonly type: "string";
readonly description: "The merchant customer identifier of the selling partner account on whose behalf the feed was submitted. This field will be null when the feed was submitted on behalf of a vendor group identifier.";
readonly examples: readonly ["A3TH9S8BH6GOGM"];
};
readonly accountId: {
readonly $id: "#/properties/payload/properties/feedProcessingFinishedNotification/properties/accountId";
readonly type: "string";
readonly description: "The merchant customer identifier or vendor group identifier of the selling partner account on whose behalf the feed was submitted.";
readonly examples: readonly ["amzn1.merchant.o.A3TH9S8BH6GOGM", "amzn1.vg.6213651"];
};
readonly feedId: {
readonly $id: "#/properties/payload/properties/feedProcessingFinishedNotification/properties/feedId";
readonly type: "string";
readonly description: "The feed identifier.";
readonly examples: readonly ["53347018456"];
};
readonly feedType: {
readonly $id: "#/properties/payload/properties/feedProcessingFinishedNotification/properties/feedType";
readonly type: "string";
readonly description: "The feed type.";
readonly examples: readonly ["POST_PRODUCT_DATA"];
};
readonly processingStatus: {
readonly $id: "#/properties/payload/properties/feedProcessingFinishedNotification/properties/processingStatus";
readonly type: "string";
readonly description: "The processing status of the feed.";
readonly examples: readonly ["CANCELLED", "DONE", "FATAL"];
readonly enum: readonly ["CANCELLED", "DONE", "FATAL"];
};
readonly resultFeedDocumentId: {
readonly $id: "#/properties/payload/properties/feedProcessingFinishedNotification/properties/resultFeedDocumentId";
readonly type: "string";
readonly description: "The feed document identifier. This identifier is unique only in combination with a seller ID.";
readonly examples: readonly ["amzn1.tortuga.3.edbcd0d8-3434-8222-1234-52ad8ade1208.URUTI57URI9BMZ"];
};
};
};
};
};
readonly notificationMetadata: {
readonly $id: "#/properties/notificationMetadata";
readonly type: "object";
readonly description: "The metadata of the notification.";
readonly examples: readonly [{
readonly applicationId: "amzn1.sellerapps.app.aacccfff-44aa-4b7c-b42b-ed4ec98dd746";
readonly subscriptionId: "subscription-id-d0e9e693-c3ad-4373-979f-ed4ec98dd746";
readonly publishTime: "2020-07-13T19:42:04.284Z";
readonly notificationId: "d0e9e693-c3ad-4373-979f-ed4ec98dd746";
}];
readonly required: readonly ["applicationId", "subscriptionId", "publishTime", "notificationId"];
readonly properties: {
readonly applicationId: {
readonly $id: "#/properties/notificationMetadata/properties/applicationId";
readonly type: "string";
readonly description: "The application identifier.";
readonly examples: readonly ["amzn1.sellerapps.app.aacccfff-44aa-4b7c-b42b-ed4ec98dd746"];
};
readonly subscriptionId: {
readonly $id: "#/properties/notificationMetadata/properties/subscriptionId";
readonly type: "string";
readonly description: "The subscription identifier.";
readonly examples: readonly ["subscription-id-d0e9e693-c3ad-4373-979f-ed4ec98dd746"];
};
readonly publishTime: {
readonly $id: "#/properties/notificationMetadata/properties/publishTime";
readonly type: "string";
readonly description: "The timestamp of when the notification was published, formatted as ISO 8601 date-time.";
readonly examples: readonly ["2020-07-13T19:42:04.284Z"];
};
readonly notificationId: {
readonly $id: "#/properties/notificationMetadata/properties/notificationId";
readonly type: "string";
readonly description: "The notification identifier.";
readonly examples: readonly ["d0e9e693-c3ad-4373-979f-ed4ec98dd746"];
};
};
};
};
};
export type FeedProcessingFinishedNotification = FromSchema<typeof feedProcessingFinishedNotification>;