
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';

const SalesSdkDemoMeta: ComponentMetadata = {
  "componentName": "SalesSdkDemo",
  "title": "SalesSdkDemo",
  "docUrl": "",
  "screenshot": "",
  "devMode": "proCode",
  "npm": {
    "package": "@pisell/private-materials",
    "version": "6.11.229",
    "exportName": "SalesSdkDemo",
    "main": "src/index.ts",
    "destructuring": true,
    "subName": ""
  },
  "configure": {
    "props": [
      {
        "title": {
          "label": {
            "type": "i18n",
            "en-US": "className",
            "zh-CN": "className"
          }
        },
        "name": "className",
        "setter": {
          "componentName": "MixedSetter",
          "props": {
            "setters": [
              {
                "componentName": "ObjectSetter",
                "props": {
                  "config": {
                    "extraSetter": {
                      "componentName": "MixedSetter",
                      "isRequired": false,
                      "props": {}
                    }
                  }
                },
                "isRequired": false,
                "initialValue": {}
              },
              {
                "componentName": "StringSetter",
                "isRequired": false,
                "initialValue": ""
              }
            ]
          }
        }
      },
      {
        "title": {
          "label": {
            "type": "i18n",
            "en-US": "otherParams",
            "zh-CN": "透传给 OS 注册时"
          },
          "tip": "otherParams | 透传给 OS 注册时的 otherParams（platform / type / channel / dineInConfig 等）"
        },
        "name": "otherParams",
        "description": "透传给 OS 注册时的 otherParams（platform / type / channel / dineInConfig 等）",
        "setter": {
          "componentName": "MixedSetter",
          "props": {
            "setters": [
              {
                "componentName": "ObjectSetter",
                "props": {
                  "config": {
                    "extraSetter": {
                      "componentName": "MixedSetter",
                      "isRequired": false,
                      "props": {}
                    }
                  }
                },
                "isRequired": false,
                "initialValue": {}
              }
            ]
          }
        }
      },
      {
        "title": {
          "label": {
            "type": "i18n",
            "en-US": "osKey",
            "zh-CN": "多实例区分；与 ti"
          },
          "tip": "osKey | 多实例区分；与 ticketBooking 共享同一 osKey 时自动复用其 BookingTicket 实例"
        },
        "name": "osKey",
        "description": "多实例区分；与 ticketBooking 共享同一 osKey 时自动复用其 BookingTicket 实例",
        "setter": {
          "componentName": "StringSetter",
          "isRequired": true,
          "initialValue": ""
        }
      },
      {
        "title": {
          "label": {
            "type": "i18n",
            "en-US": "businessCode",
            "zh-CN": "透传给 OS Boo"
          },
          "tip": "businessCode | 透传给 OS BookingTicket 的 businessCode"
        },
        "name": "businessCode",
        "description": "透传给 OS BookingTicket 的 businessCode",
        "setter": {
          "componentName": "MixedSetter",
          "props": {
            "setters": [
              {
                "componentName": "ObjectSetter",
                "props": {
                  "config": {
                    "extraSetter": {
                      "componentName": "MixedSetter",
                      "isRequired": false,
                      "props": {}
                    }
                  }
                },
                "isRequired": false,
                "initialValue": {}
              },
              {
                "componentName": "StringSetter",
                "isRequired": false,
                "initialValue": ""
              }
            ]
          }
        }
      },
      {
        "title": {
          "label": {
            "type": "i18n",
            "en-US": "rulesHooks",
            "zh-CN": "业务自定义 rule"
          },
          "tip": "rulesHooks | 业务自定义 rules hooks，否则用 OrderModule 默认"
        },
        "name": "rulesHooks",
        "description": "业务自定义 rules hooks，否则用 OrderModule 默认",
        "setter": {
          "componentName": "MixedSetter",
          "props": {
            "setters": [
              {
                "componentName": "ObjectSetter",
                "props": {
                  "config": {
                    "extraSetter": {
                      "componentName": "MixedSetter",
                      "isRequired": false,
                      "props": {}
                    }
                  }
                },
                "isRequired": false,
                "initialValue": {}
              },
              {
                "componentName": "ObjectSetter",
                "props": {
                  "config": {
                    "items": [
                      {
                        "title": {
                          "label": {
                            "type": "i18n",
                            "en-US": "getProduct",
                            "zh-CN": "getProduct"
                          }
                        },
                        "name": "getProduct",
                        "setter": {
                          "componentName": "MixedSetter",
                          "props": {
                            "setters": [
                              {
                                "componentName": "ObjectSetter",
                                "props": {
                                  "config": {
                                    "extraSetter": {
                                      "componentName": "MixedSetter",
                                      "isRequired": false,
                                      "props": {}
                                    }
                                  }
                                },
                                "isRequired": false,
                                "initialValue": {}
                              },
                              {
                                "componentName": "FunctionSetter"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "title": {
                          "label": {
                            "type": "i18n",
                            "en-US": "setProduct",
                            "zh-CN": "setProduct"
                          }
                        },
                        "name": "setProduct",
                        "setter": {
                          "componentName": "MixedSetter",
                          "props": {
                            "setters": [
                              {
                                "componentName": "ObjectSetter",
                                "props": {
                                  "config": {
                                    "extraSetter": {
                                      "componentName": "MixedSetter",
                                      "isRequired": false,
                                      "props": {}
                                    }
                                  }
                                },
                                "isRequired": false,
                                "initialValue": {}
                              },
                              {
                                "componentName": "FunctionSetter"
                              }
                            ]
                          }
                        }
                      }
                    ],
                    "extraSetter": {
                      "componentName": "MixedSetter",
                      "isRequired": false,
                      "props": {}
                    }
                  }
                }
              }
            ]
          }
        }
      },
      {
        "title": {
          "label": {
            "type": "i18n",
            "en-US": "orderId",
            "zh-CN": "给定 orderId"
          },
          "tip": "orderId | 给定 orderId 且 autoBootstrap !== false 时，挂载后自动 loadSalesDetail；"
        },
        "name": "orderId",
        "description": "给定 orderId 且 autoBootstrap !== false 时，挂载后自动 loadSalesDetail；",
        "setter": {
          "componentName": "MixedSetter",
          "props": {
            "setters": [
              {
                "componentName": "ObjectSetter",
                "props": {
                  "config": {
                    "extraSetter": {
                      "componentName": "MixedSetter",
                      "isRequired": false,
                      "props": {}
                    }
                  }
                },
                "isRequired": false,
                "initialValue": {}
              },
              {
                "componentName": "NumberSetter",
                "isRequired": false,
                "initialValue": 0
              }
            ]
          }
        }
      },
      {
        "title": {
          "label": {
            "type": "i18n",
            "en-US": "autoBootstrap",
            "zh-CN": "默认 true"
          },
          "tip": "autoBootstrap | 默认 true"
        },
        "name": "autoBootstrap",
        "description": "默认 true",
        "setter": {
          "componentName": "MixedSetter",
          "props": {
            "setters": [
              {
                "componentName": "ObjectSetter",
                "props": {
                  "config": {
                    "extraSetter": {
                      "componentName": "MixedSetter",
                      "isRequired": false,
                      "props": {}
                    }
                  }
                },
                "isRequired": false,
                "initialValue": {}
              },
              {
                "componentName": "BoolSetter",
                "isRequired": false,
                "initialValue": false
              }
            ]
          }
        }
      }
    ],
    "supports": {
      "style": true
    },
    "component": {}
  }
};
const snippets: Snippet[] = [
  {
    "title": "SalesSdkDemo",
    "screenshot": "",
    "schema": {
      "componentName": "SalesSdkDemo",
      "props": {}
    }
  }
];

export default {
  ...SalesSdkDemoMeta,
  snippets
};
