Hello from MCP server

List Files | Just Commands | Repo | Logs

← back |
// Add warranty content items first
export const warrantyContentItems = [
  {
    collection: "contentItems",
    operation: "create",
    data: {
      name: "Platinum Warranty",
      refId: "warranty_platinum",
      content: "2 year limited warranty",
    },
  },
  {
    collection: "contentItems",
    operation: "create",
    data: {
      name: "Gold Warranty",
      refId: "warranty_gold",
      content: "18 month limited warranty",
    },
  },
  {
    collection: "contentItems",
    operation: "create",
    data: {
      name: "Silver Warranty",
      refId: "warranty_silver",
      content: "1 year limited warranty",
    },
  },
  {
    collection: "contentItems",
    operation: "create",
    data: {
      name: "Bronze Warranty",
      refId: "warranty_bronze",
      content: "6 month limited warranty",
    },
  },
  {
    collection: "contentItems",
    operation: "create",
    data: {
      name: "Band-Aid Warranty",
      refId: "warranty_bandaid",
      content: "30 day limited warranty",
    },
  },
];

// Create warrantyCopy items in plumbing book (same as content)
export const warrantyCopyItems = [
  {
    collection: "warrantyCopy",
    operation: "create",
    data: {
      refId: "warranty-platinum",
      refs: [{ collection: "contentItems", refIds: ["warranty_platinum"] }],
    },
  },
  {
    collection: "warrantyCopy",
    operation: "create",
    data: {
      refId: "warranty-gold",
      refs: [{ collection: "contentItems", refIds: ["warranty_gold"] }],
    },
  },
  {
    collection: "warrantyCopy",
    operation: "create",
    data: {
      refId: "warranty-silver",
      refs: [{ collection: "contentItems", refIds: ["warranty_silver"] }],
    },
  },
  {
    collection: "warrantyCopy",
    operation: "create",
    data: {
      refId: "warranty-bronze",
      refs: [{ collection: "contentItems", refIds: ["warranty_bronze"] }],
    },
  },
  {
    collection: "warrantyCopy",
    operation: "create",
    data: {
      refId: "warrantyBandaid",
      refs: [{ collection: "contentItems", refIds: ["warranty_bandaid"] }],
    },
  },
];

export const tnfrTiers = [
  {
    collection: "tiers",
    operation: "create",
    data: {
      name: "Band-Aid",
      rank: 5,
      refId: "bandaid",
      refs: [{ collection: "warrantyCopy", refIds: ["warrantyBandaid"] }],
    },
  },
  {
    collection: "tiers",
    operation: "create",
    data: {
      name: "Bronze",
      refId: "bronze",
      rank: 4,
      refs: [{ collection: "warrantyCopy", refIds: ["warranty-bronze"] }],
    },
  },
  {
    collection: "tiers",
    operation: "create",
    data: {
      name: "Silver",
      refId: "silver",
      rank: 3,
      refs: [{ collection: "warrantyCopy", refIds: ["warranty-silver"] }],
    },
  },
  {
    collection: "tiers",
    operation: "create",
    data: {
      name: "Gold",
      refId: "gold",
      rank: 2,
      refs: [{ collection: "warrantyCopy", refIds: ["warranty-gold"] }],
    },
  },
  {
    collection: "tiers",
    operation: "create",
    data: {
      name: "Platinum",
      refId: "platinum",
      rank: 1,
      refs: [{ collection: "warrantyCopy", refIds: ["warranty-platinum"] }],
    },
  },
];